From 0796395283a6166dc4a8ff65c2b8e4476157d158 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Rouault Date: Tue, 31 May 2011 11:57:21 +0200 Subject: [PATCH] openvz: fix bridge devices parsing in openvzReadNetworkConf() strchrnul() was called on the wrong string so it returned the same result for each iteration. --- src/openvz/openvz_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=")) { -- GitLab