]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Properly check the return value of CCWAddressAsString
authorJán Tomko <jtomko@redhat.com>
Mon, 23 Jun 2014 06:31:53 +0000 (08:31 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 16 Dec 2015 03:51:05 +0000 (20:51 -0700)
commitedf9889a6cb20831222c67bdf4dd9ba3fa0e5c9a
tree012d811cbed1159e6bdd02c512c2e911aba6089e
parent660311b21b37d5486eb64ae78111c8040c5b467e
Properly check the return value of CCWAddressAsString

It returns NULL on failure. Checking if the negation of it
is less than zero makes no sense. (Found by coverity after moving
the code)

In another case, the return value wasn't checked at all.

(cherry picked from commit 3fe9d75ab641f5b676845980a0ee7aef8148da9b)

Conflicts:
src/conf/domain_addr.c - no code movement from commit b2626755
src/qemu/qemu_command.c