projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ofproto: Don't send async messages on transient connections by default.
[openvswitch]
/
lib
/
dhcp.c
diff --git
a/lib/dhcp.c
b/lib/dhcp.c
index a8f024482b3a8a62eec3d3baf51a4a53730cf091..e16176ba1bf32ee83059e6a6aa9e85df833e5aab 100644
(file)
--- a/
lib/dhcp.c
+++ b/
lib/dhcp.c
@@
-497,7
+497,7
@@
dhcp_option_equals(const struct dhcp_option *a, const struct dhcp_option *b)
{
return ((a->data != NULL) == (b->data != NULL)
&& a->n == b->n
- &&
!memcmp(a->data, b->data, a->n
));
+ &&
(!a->data || !memcmp(a->data, b->data, a->n)
));
}
/* Replaces 'ds' by a string representation of 'msg'. If 'multiline' is