From: Ethan Jackson Date: Sat, 27 Aug 2011 00:12:21 +0000 (-0700) Subject: cfm: Zero out empty field as required. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56717eb17c2e2027ea0a2e2957f978dfcd1433b5;p=openvswitch cfm: Zero out empty field as required. Found with valgrind. --- diff --git a/lib/cfm.c b/lib/cfm.c index e56ccab7..dc55d4bb 100644 --- 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;