mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Revert "dnsmasq: Fix parsing of the version number"
This reverts commit 5114431396
which was pushed accidentally.
This commit is contained in:
parent
3130541ebf
commit
28de547997
@ -641,9 +641,9 @@ dnsmasqCapsSetFromBuffer(dnsmasqCapsPtr caps, const char *buf)
|
|||||||
|
|
||||||
caps->noRefresh = true;
|
caps->noRefresh = true;
|
||||||
|
|
||||||
if (!(p = strstr(buf, DNSMASQ_VERSION_STR)))
|
p = STRSKIP(buf, DNSMASQ_VERSION_STR);
|
||||||
|
if (!p)
|
||||||
goto fail;
|
goto fail;
|
||||||
p += sizeof(DNSMASQ_VERSION_STR) - 1;
|
|
||||||
virSkipSpaces(&p);
|
virSkipSpaces(&p);
|
||||||
if (virParseVersionString(p, &caps->version, true) < 0)
|
if (virParseVersionString(p, &caps->version, true) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user