From: Jean-Baptiste Rouault Date: Tue, 31 May 2011 09:57:21 +0000 (+0200) Subject: openvz: fix bridge devices parsing in openvzReadNetworkConf() X-Git-Tag: CVE-2011-2178~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0796395283a6166dc4a8ff65c2b8e4476157d158;p=thirdparty%2Flibvirt.git openvz: fix bridge devices parsing in openvzReadNetworkConf() strchrnul() was called on the wrong string so it returned the same result for each iteration. --- diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index 5f33f757d0..6e32242699 100644 --- a/src/openvz/openvz_conf.c +++ b/src/openvz/openvz_conf.c @@ -237,7 +237,7 @@ openvzReadNetworkConf(virDomainDefPtr def, /*parse string*/ do { - char *next = strchrnul (token, ','); + char *next = strchrnul (p, ','); if (STRPREFIX(p, "ifname=")) { /* skip in libvirt */ } else if (STRPREFIX(p, "host_ifname=")) {