]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: check negative values in bridge queues
authorErik Skultety <eskultet@redhat.com>
Tue, 16 Sep 2014 08:06:50 +0000 (10:06 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Sep 2014 08:34:37 +0000 (10:34 +0200)
commite6fc66461800cd3f5cb08e506bb617ad6e91ecf8
tree307d907fb455b477a861766345ac2eb549a79bd3
parente3c626a61d6c3d808555653684c0fb1e7c4d74ec
network: check negative values in bridge queues

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
tests/qemuxml2argvdata/qemuxml2argv-vhost_queues-invalid.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c