From 6d677813b02deda27db8039ec0de86a5332caa1f Mon Sep 17 00:00:00 2001 From: sjana Date: Tue, 6 Oct 2020 17:29:57 -0400 Subject: [PATCH] Rollback -rollbacked to master branch -changed msgs_proc.cc -me_id receiving method Issue-ID: RICAPP-148 Signed-off-by: swc Change-Id: I5bf2d3bfff3c6e78b10bdaf99399ddb260d8de55 --- src/xapp-mgmt/msgs_proc.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/xapp-mgmt/msgs_proc.cc b/src/xapp-mgmt/msgs_proc.cc index 767ef27..06cc81a 100644 --- a/src/xapp-mgmt/msgs_proc.cc +++ b/src/xapp-mgmt/msgs_proc.cc @@ -151,7 +151,6 @@ void XappMsgHandler::operator()(rmr_mbuf_t *message, bool *resend){ } a1_policy_helper helper; bool res=false; - std::string str_meid; switch(message->mtype){ //need to fix the health check. case (RIC_HEALTH_CHECK_REQ): @@ -170,10 +169,13 @@ void XappMsgHandler::operator()(rmr_mbuf_t *message, bool *resend){ } else { rmr_get_meid(message, me_id); } + if(me_id == NULL){ + mdclog_write(MDCLOG_ERR, " Error :: %s, %d : rmr_get_meid failed me_id is NULL", __FILE__, __LINE__); + break; + } mdclog_write(MDCLOG_INFO,"RMR Received MEID: %s",me_id); - str_meid.insert(0,(char*)me_id); if(_ref_sub_handler !=NULL){ - _ref_sub_handler->manage_subscription_response(message->mtype, str_meid); + _ref_sub_handler->manage_subscription_response(message->mtype, reinterpret_cast< char const* >(me_id)); } else { mdclog_write(MDCLOG_ERR, " Error :: %s, %d : Subscription handler not assigned in message processor !", __FILE__, __LINE__); } -- 2.16.6