osaf/libs/agents/saf/imma/imma_om_api.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Fix cppcheck nullPointer warnings.
diff --git a/osaf/libs/agents/saf/imma/imma_om_api.c
b/osaf/libs/agents/saf/imma/imma_om_api.c
--- a/osaf/libs/agents/saf/imma/imma_om_api.c
+++ b/osaf/libs/agents/saf/imma/imma_om_api.c
@@ -3358,8 +3358,10 @@ SaAisErrorT imma_applyCcb(SaImmCcbHandle
}
/* Reset the ccb_node flags back to indicate apply is in
progress. */
- ccb_node->mExclusive = true;
- ccb_node->mApplying = true;
+ if (ccb_node) {
+ ccb_node->mExclusive = true;
+ ccb_node->mApplying = true;
+ }
/* Release the CB lock Before MDS Send */
m_NCS_UNLOCK(&cb->cb_lock, NCS_LOCK_WRITE);
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel