mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
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…
x
Reference in New Issue
Block a user