Hi Hung, Ack from me.
Thanks, Zoran -----Original Message----- From: Hung Nguyen [mailto:[email protected]] Sent: den 4 april 2017 09:10 To: Zoran Milinkovic <[email protected]>; [email protected] Cc: [email protected] Subject: [PATCH 1 of 1] imm: Check if response is NULL when sending MDS sync message [#2401] src/imm/agent/imma_mds.cc | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) Check if response is NULL when sending MDS sync message. diff --git a/src/imm/agent/imma_mds.cc b/src/imm/agent/imma_mds.cc --- a/src/imm/agent/imma_mds.cc +++ b/src/imm/agent/imma_mds.cc @@ -602,8 +602,12 @@ uint32_t imma_mds_msg_sync_send(uint32_t /* send the message */ rc = ncsmds_api(&mds_info); - if (rc == NCSCC_RC_SUCCESS) + if (rc == NCSCC_RC_SUCCESS) { *o_evt = (IMMSV_EVT *) mds_info.info.svc_send.info.sndrsp.o_rsp; + if (*o_evt == NULL) { + rc = NCSCC_RC_FAILURE; + } + } return rc; } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
