2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

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/366

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov
2017-07-19 12:04:03 +03:00
parent fb85281c3b
commit 882bacffc1

View File

@@ -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_DPORT, encap_dport);
if (!se->has_rd_prefixlen) {
if (se->has_rd_prefixlen) {
u16 aux;
if (se->n_rd_prefix != 4) {