[ovs-dev] [PATCH 08/14] in-band: Fix null pointer dereference.

Ben Pfaff blp at nicira.com
Fri Apr 9 00:07:06 UTC 2010


Triggering this would require deleting the in-use datapath at just the
right time, but we still don't want it to happen.
---
 ofproto/in-band.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ofproto/in-band.c b/ofproto/in-band.c
index 219ab8d..7e2fc53 100644
--- a/ofproto/in-band.c
+++ b/ofproto/in-band.c
@@ -410,7 +410,7 @@ in_band_msg_in_hook(struct in_band *in_band, const flow_t *flow,
         }
 
         local_mac = get_local_mac(in_band);
-        if (eth_addr_equals(dhcp->chaddr, local_mac)) {
+        if (local_mac && eth_addr_equals(dhcp->chaddr, local_mac)) {
             return true;
         }
     }
-- 
1.6.6.1





More information about the dev mailing list