
4 Nov
2015
4 Nov
'15
10:30 a.m.
On Tue, Nov 03, 2015 at 07:18:09PM -0500, John Ferlan wrote:
Rather than "if (virNetDevFeatureAvailable(ifname, &cmd))" change the success criteria to "if (virNetDevFeatureAvailable(ifname, &cmd) == 1)".
The called helper returns -1 on failure, 0 on not found, and 1 on found. Thus a failure was setting bits.
Signed-off-by: John Ferlan <jferlan@redhat.com> --- src/util/virnetdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
ACK, introduced by commit ac3ed20 which changed the helper's return values without adjusting its callers. Jan