From 66fb94b510164047e571af9a2bab8046bb9e192f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 13 May 2012 16:31:15 -0700 Subject: [PATCH] cfm: Avoid null pointer dereference in cfm_process_heartbeat(). Found by clang. Signed-off-by: Ben Pfaff --- lib/cfm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")" -- 2.30.2