From: Ben Pfaff Date: Sun, 13 May 2012 23:31:15 +0000 (-0700) Subject: cfm: Avoid null pointer dereference in cfm_process_heartbeat(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66fb94b510164047e571af9a2bab8046bb9e192f;p=openvswitch cfm: Avoid null pointer dereference in cfm_process_heartbeat(). Found by clang. Signed-off-by: Ben Pfaff --- diff --git a/lib/cfm.c b/lib/cfm.c index c2e2a6ca..41a27a07 100644 --- a/lib/cfm.c +++ b/lib/cfm.c @@ -606,7 +606,7 @@ cfm_process_heartbeat(struct cfm *cfm, const struct ofpbuf *p) if (ccm_rdi) { cfm_fault |= CFM_FAULT_RDI; VLOG_DBG("%s: RDI bit flagged from RMP %"PRIu64, cfm->name, - rmp->mpid); + ccm_mpid); } VLOG_DBG("%s: received CCM (seq %"PRIu32") (mpid %"PRIu64")"