Commit 882bacff authored by Pavel Emelyanov's avatar Pavel Emelyanov

net: Don't try to restore sit6rd when not present

Due to a misprint in an if the 6rd info for sit device
was restored when not present.

https://github.com/xemul/criu/issues/366Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent fb85281c
...@@ -1385,7 +1385,7 @@ static int sit_link_info(NetDeviceEntry *nde, struct newlink_req *req) ...@@ -1385,7 +1385,7 @@ static int sit_link_info(NetDeviceEntry *nde, struct newlink_req *req)
DECODE_ENTRY(u16, IFLA_IPTUN_ENCAP_SPORT, encap_sport); DECODE_ENTRY(u16, IFLA_IPTUN_ENCAP_SPORT, encap_sport);
DECODE_ENTRY(u16, IFLA_IPTUN_ENCAP_DPORT, encap_dport); DECODE_ENTRY(u16, IFLA_IPTUN_ENCAP_DPORT, encap_dport);
if (!se->has_rd_prefixlen) { if (se->has_rd_prefixlen) {
u16 aux; u16 aux;
if (se->n_rd_prefix != 4) { if (se->n_rd_prefix != 4) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment