From a35801789a04c3c2abfdccb8afe9b21289bf190a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 6 Apr 2010 12:46:12 -0700 Subject: [PATCH] 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. --- ofproto/in-band.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.30.2