Unverified Commit 7815c733 by Christian Brauner Committed by GitHub

Merge pull request #2957 from tomponline/tp-macvlan-mode

network: Fixes bug in macvlan mode selection
parents 978dfc7e b56680fd
......@@ -474,7 +474,7 @@ char *lxc_macvlan_flag_to_mode(int mode)
size_t i;
for (i = 0; i < sizeof(macvlan_mode) / sizeof(macvlan_mode[0]); i++) {
if (macvlan_mode[i].mode == mode)
if (macvlan_mode[i].mode != mode)
continue;
return macvlan_mode[i].name;
......
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