提交 07963952 编写于 作者: J Jean-Baptiste Rouault 提交者: Matthias Bolte

openvz: fix bridge devices parsing in openvzReadNetworkConf()

strchrnul() was called on the wrong string so it returned
the same result for each iteration.
上级 7cbbf61b
...@@ -237,7 +237,7 @@ openvzReadNetworkConf(virDomainDefPtr def, ...@@ -237,7 +237,7 @@ openvzReadNetworkConf(virDomainDefPtr def,
/*parse string*/ /*parse string*/
do { do {
char *next = strchrnul (token, ','); char *next = strchrnul (p, ',');
if (STRPREFIX(p, "ifname=")) { if (STRPREFIX(p, "ifname=")) {
/* skip in libvirt */ /* skip in libvirt */
} else if (STRPREFIX(p, "host_ifname=")) { } else if (STRPREFIX(p, "host_ifname=")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册