Unverified Commit c0b3869f by Christian Brauner Committed by Stéphane Graber

criu: use correct check initialization check

parent 27cd0177
......@@ -551,7 +551,7 @@ static void exec_criu(struct criu_opts *opts)
external_not_veth = false;
}
if (n->name) {
if (n->name[0] != '\0') {
if (strlen(n->name) >= sizeof(eth))
goto err;
strncpy(eth, n->name, sizeof(eth));
......
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