]> xenbits.xensource.com Git - libvirt.git/commit
util: permit querying a VF MAC address or VLAN tag by itself
authorLaine Stump <laine@laine.org>
Fri, 17 Feb 2017 19:28:55 +0000 (14:28 -0500)
committerLaine Stump <laine@laine.org>
Fri, 24 Mar 2017 04:34:08 +0000 (00:34 -0400)
commit176229dd05a6c96dec2b7b1c2fb0143d7331b10e
tree4daee64d9e6a3084f2703efe0a507d74712dca8c
parentb7118623ad5a8e6ea75d693881c08873eefa3e28
util: permit querying a VF MAC address or VLAN tag by itself

virNetDevParseVfConfig() assumed that both the MAC address and VLAN
tag pointers were valid, so even if you only wanted one or the other,
you would need a variable to hold the returned value for both. This
patch checks each for a NULL pointer before filling it in.
src/util/virnetdev.c