netlink-socket: Fix handling socket allocation failure in nl_dump_start().
authorBen Pfaff <blp@nicira.com>
Mon, 14 Jul 2014 21:06:03 +0000 (14:06 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 15 Jul 2014 17:16:10 +0000 (10:16 -0700)
commit507c41ee0aad3952c08ab9965467f7c05d03195a
tree160544d132a31b8a13d7405055f824f1acc9f692
parent6b8bb1db0b59cfafbeaf914f140c96bf7e0bc96a
netlink-socket: Fix handling socket allocation failure in nl_dump_start().

If nl_pool_alloc() failed, then 'dump' was not initialized at all and
further use of the dump would access uninitialized data, probably causing
a crash.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
lib/netlink-socket.c