From 56717eb17c2e2027ea0a2e2957f978dfcd1433b5 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Fri, 26 Aug 2011 17:12:21 -0700 Subject: [PATCH] cfm: Zero out empty field as required. Found with valgrind. --- lib/cfm.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2