projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d8ffe1
)
cfm: Zero out empty field as required.
author
Ethan Jackson
<ethan@nicira.com>
Sat, 27 Aug 2011 00:12:21 +0000
(17:12 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Sat, 27 Aug 2011 01:20:20 +0000
(18:20 -0700)
Found with valgrind.
lib/cfm.c
patch
|
blob
|
history
diff --git
a/lib/cfm.c
b/lib/cfm.c
index e56ccab75eea36295fd4c0b52c244b8b102f04ec..dc55d4bb1826896c0c3120e2e02f2ddaaad566db 100644
(file)
--- a/
lib/cfm.c
+++ b/
lib/cfm.c
@@
-299,6
+299,7
@@
cfm_compose_ccm(struct cfm *cfm, struct ofpbuf *packet,
ccm->mpid = htons(cfm->mpid);
ccm->flags = cfm->ccm_interval;
memcpy(ccm->maid, cfm->maid, sizeof ccm->maid);
+ memset(ccm->zero, 0, sizeof ccm->zero);
if (cfm->recv_fault) {
ccm->flags |= CCM_RDI_MASK;