ovs-controller: Avoid dereferencing NULL pointer when the switch acts as a hub
authorZhengLingyun <konghuarukhr@163.com>
Tue, 8 Oct 2013 15:52:40 +0000 (23:52 +0800)
committerBen Pfaff <blp@nicira.com>
Tue, 8 Oct 2013 17:02:13 +0000 (10:02 -0700)
commit76fb0c1282b916ef157324f53ec00d738864d806
treecc84786d229db64501a5e39f50d4244dbbf28bce
parentcd563ec72a2689273ad3d22ac2fed8423acb91ee
ovs-controller: Avoid dereferencing NULL pointer when the switch acts as a hub

Starting ovs-controller with '-H' option will lead to a segment fault problem.
Add a check, and adjust the indentation of the following code.

Signed-off-by: ZhengLingyun <konghuarukhr@163.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/learning-switch.c