From: tomponline Date: Mon, 29 Apr 2019 14:11:17 +0000 (+0100) Subject: network: Fixes bug in macvlan mode selection X-Git-Tag: lxc-3.2.0~87^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b56680fd747cb4dd378ff693b16caeda8f18097c;p=thirdparty%2Flxc.git network: Fixes bug in macvlan mode selection Signed-off-by: tomponline --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index 50777c448..007a030e9 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -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;