This was causing ovs-vswitchd to core occasionally, even when BFD
wasn't turned on.

Bug #17162.
Signed-off-by: Ethan Jackson <[email protected]>
---
 ofproto/ofproto.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 28df181..ca1dc89 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -812,6 +812,7 @@ ofproto_port_set_bfd(struct ofproto *ofproto, uint16_t 
ofp_port,
     if (!ofport) {
         VLOG_WARN("%s: cannot configure bfd on nonexistent port %"PRIu16,
                   ofproto->name, ofp_port);
+        return;
     }
 
     error = (ofproto->ofproto_class->set_bfd
-- 
1.7.9.5

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to