dpif-linux: Do not call nl_sock_pid() on NULL sock pointer.
authorAlex Wang <alexw@nicira.com>
Tue, 17 Dec 2013 22:37:10 +0000 (14:37 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 17 Dec 2013 23:12:50 +0000 (15:12 -0800)
commit48380ae607d4c170108c980efb8afe267f6a37dc
tree1b1a6ded5e5e9ed6bce2c20dda7eb4b604bf0c9e
parent7c1ef244f015cfd30ec388e3108cd5d93c32643a
dpif-linux: Do not call nl_sock_pid() on NULL sock pointer.

This commit adds check of sock pointer in dpif_linux_port_get_pid().
If the pointer is NULL, do not call nl_sock_pid().

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/dpif-linux.c