From: Ben Pfaff Date: Tue, 6 Apr 2010 19:46:12 +0000 (-0700) Subject: in-band: Fix null pointer dereference. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35801789a04c3c2abfdccb8afe9b21289bf190a;p=openvswitch in-band: Fix null pointer dereference. Triggering this would require deleting the in-use datapath at just the right time, but we still don't want it to happen. --- diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 94024bce..adf89d12 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; } }