Commit ad60725e by Tycho Andersen Committed by Stéphane Graber

c/r: don't require a veth link to c/r

veths can be unconnected in the container's config, and we should handle this case. Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent eac6837f
...@@ -178,7 +178,10 @@ void exec_criu(struct criu_opts *opts) ...@@ -178,7 +178,10 @@ void exec_criu(struct criu_opts *opts)
veth = n->priv.veth_attr.pair; veth = n->priv.veth_attr.pair;
ret = snprintf(buf, sizeof(buf), "%s=%s@%s", eth, veth, n->link); if (n->link)
ret = snprintf(buf, sizeof(buf), "%s=%s@%s", eth, veth, n->link);
else
ret = snprintf(buf, sizeof(buf), "%s=%s", eth, veth);
if (ret < 0 || ret >= sizeof(buf)) if (ret < 0 || ret >= sizeof(buf))
goto err; goto err;
......
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