]> xenbits.xensource.com Git - 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)
committerJán Tomko <jtomko@redhat.com>
Mon, 23 Jun 2014 06:31:53 +0000 (08:31 +0200)
commit3fe9d75ab641f5b676845980a0ee7aef8148da9b
tree69643948b49bbc459a149aa5faf18ac35ca01b7e
parentb2626755d356d395a7c8bc30e9bbd86e545bf33f
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.
src/conf/domain_addr.c