diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c index 5f33f757d0c9d4db27778e22515a31d73a7cde4e..6e32242699219d5ec9ae4d50ea009b2ce14b0410 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=")) {