]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
openvz: fix bridge devices parsing in openvzReadNetworkConf()
authorJean-Baptiste Rouault <jean-baptiste.rouault@diateam.net>
Tue, 31 May 2011 09:57:21 +0000 (11:57 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 31 May 2011 12:28:52 +0000 (14:28 +0200)
strchrnul() was called on the wrong string so it returned
the same result for each iteration.

src/openvz/openvz_conf.c

index 5f33f757d0c9d4db27778e22515a31d73a7cde4e..6e32242699219d5ec9ae4d50ea009b2ce14b0410 100644 (file)
@@ -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=")) {