]> xenbits.xensource.com Git - libvirt.git/commit
interface: report correct interface count when not returning list
authorLaine Stump <laine@laine.org>
Fri, 18 Sep 2015 17:24:47 +0000 (13:24 -0400)
committerLaine Stump <laine@laine.org>
Fri, 2 Oct 2015 15:16:11 +0000 (11:16 -0400)
commit6fda6699e55d29c0966f716ee0ed95851a7c4747
treef91f1c5c7a25f883150f580d2d797d9ddbd2a27e
parentead2df32ba57515ce0ac75a564e1c617de359d20
interface: report correct interface count when not returning list

The spec for virConnectListAllInterfaces says that if the pointer that
is supposed to hold the list of interfaces is NULL, the function
should just return the count of interfaces that matched the filter,
but the code never increments the count if the list pointer is NULL.
src/interface/interface_backend_netcf.c