[CRIU] [PATCH] net: Don't try to restore sit6rd when not present
Pavel Emelyanov
xemul at virtuozzo.com
Wed Jul 19 12:04:03 MSK 2017
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 at virtuozzo.com>
---
criu/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/net.c b/criu/net.c
index 8b479fc..8662e5a 100644
--- a/criu/net.c
+++ b/criu/net.c
@@ -1467,7 +1467,7 @@ static int sit_link_info(struct ns_id *ns, struct net_link *link, struct newlink
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) {
--
2.1.4
More information about the CRIU
mailing list