mirror of https://gitee.com/openkylin/libvirt.git
openvz: fix bridge devices parsing in openvzReadNetworkConf()
strchrnul() was called on the wrong string so it returned the same result for each iteration.
This commit is contained in:
parent
7cbbf61bd4
commit
0796395283
|
@ -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=")) {
|
||||
|
|
Loading…
Reference in New Issue