ovn-northd: Fix treatment of ports with unknown MACs.
authorBen Pfaff <blp@nicira.com>
Mon, 27 Apr 2015 15:54:51 +0000 (08:54 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 27 Apr 2015 17:16:35 +0000 (10:16 -0700)
commit2fd81197d32917e0b136dd6170b6652c56c89956
tree6cd4f176f479375e4925d48f56beaf97eb545a4d
parent6cfe8161f5e6ef5d2589897ae9cec6d1436a495f
ovn-northd: Fix treatment of ports with unknown MACs.

Ports with unknown MACs are a per-lswitch concept but the code here was
treating them as global and also dereferenced a null pointer (generally
'lport' was null in the expression 'lswitch->lport').

Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
ovn/northd/ovn-northd.c