[ovs-dev] [PATCH] cfm: Avoid null pointer dereference in cfm_process_heartbeat().
Ben Pfaff
blp at nicira.com
Sun May 13 23:58:03 UTC 2012
Found by clang.
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
lib/cfm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/cfm.c b/lib/cfm.c
index c2e2a6c..41a27a0 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")"
--
1.7.2.5
More information about the dev
mailing list