summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Javid <mjavid@codeaurora.org>2017-12-13 13:13:41 +0530
committerMohammed Javid <mjavid@codeaurora.org>2017-12-13 16:40:03 +0530
commitd31b340e169222f97c33704ae37ef9e37efa2091 (patch)
treeff9f3792f551875bb3f2a93e3783091b8d95f824
parentb3834477badb5baae851a9ed9097d5b2b290c7ac (diff)
downloadipacfg-mgr-d31b340e169222f97c33704ae37ef9e37efa2091.tar.gz
ipacm: KW fix
Prevent dereference of NULL pointer. Change-Id: I3eb0773b661bdb654e8f9cc9b888e6a0d2944689
-rw-r--r--ipacm/src/IPACM_Lan.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp
index 21bf7c0..1cc8ece 100644
--- a/ipacm/src/IPACM_Lan.cpp
+++ b/ipacm/src/IPACM_Lan.cpp
@@ -4381,6 +4381,7 @@ void IPACM_Lan::eth_bridge_post_event(ipa_cm_event_id evt, ipa_ip_type iptype, u
{
ipacm_cmd_q_data eth_bridge_evt;
ipacm_event_eth_bridge *evt_data_eth_bridge;
+ const char *eventName = IPACM_Iface::ipacmcfg->getEventName(evt);
#ifdef FEATURE_L2TP
ipacm_event_data_all *evt_data_all;
#endif
@@ -4449,8 +4450,11 @@ void IPACM_Lan::eth_bridge_post_event(ipa_cm_event_id evt, ipa_ip_type iptype, u
}
eth_bridge_evt.evt_data = (void*)evt_data_eth_bridge;
}
- IPACMDBG_H("Posting event %s\n",
- IPACM_Iface::ipacmcfg->getEventName(evt));
+ if (eventName != NULL)
+ {
+ IPACMDBG_H("Posting event %s\n",
+ eventName);
+ }
IPACM_EvtDispatcher::PostEvt(&eth_bridge_evt);
}