netdev-dummy: Fix null pointer deref in dummy_packet_conn_set_config().
authorBen Pfaff <blp@nicira.com>
Thu, 16 Apr 2015 21:38:36 +0000 (14:38 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 21 Apr 2015 18:45:00 +0000 (11:45 -0700)
commit966904d27f15f0c93499d79cb8bd726750369831
treea36626661053e38f0a87775349cdcec1967084c9
parent186de41979352a7f111e3eec6744778d80ac17b0
netdev-dummy: Fix null pointer deref in dummy_packet_conn_set_config().

This would trigger if someone tried to switch a dummy device between
active and passive connections.  It's not very important because dummy
devices are only enabled during testing.

Found by LLVM scan-build.

Reported-by: Kevin Lo <kevlo@FreeBSD.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/netdev-dummy.c