[libvirt] [PATCHv2] network: check negative values in bridge queues

Martin Kletzander mkletzan at redhat.com
Tue Sep 16 08:35:04 UTC 2014


On Tue, Sep 16, 2014 at 10:06:50AM +0200, Erik Skultety wrote:
>We already are checking for negative value, reporting an error, but
>using wrong function and the check only succeeds when a value that
>cannot be converted to number successfully is encountered. This patch
>provides just a minor change in call of the right version
>of function virStrToLong.
>
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1138539
>---
> src/conf/domain_conf.c                             |  2 +-
> .../qemuxml2argv-vhost_queues-invalid.xml          | 32 ++++++++++++++++++++++
> tests/qemuxml2argvtest.c                           |  1 +
> 3 files changed, 34 insertions(+), 1 deletion(-)
> create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-vhost_queues-invalid.xml
>

Thanks a lot for the tests, ACK && pushed now.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140916/372cc857/attachment-0001.sig>


More information about the libvir-list mailing list