projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc6ddf6
)
in-band: Fix null pointer dereference.
author
Ben Pfaff
<blp@nicira.com>
Tue, 6 Apr 2010 19:46:12 +0000
(12:46 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 20 Apr 2010 18:01:44 +0000
(11:01 -0700)
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
patch
|
blob
|
history
diff --git
a/ofproto/in-band.c
b/ofproto/in-band.c
index 94024bcecccfde902ae8db463c938cc397ccc36b..adf89d123e224d3b07b2372136ce4d647143713b 100644
(file)
--- 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;
}
}