diff options
| author | Krunal Soni <ksoni@codeaurora.org> | 2017-01-13 10:10:47 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-13 13:32:56 -0800 |
| commit | de0ca2561e3899d3e6cd2630737b6e037b0fef7f (patch) | |
| tree | 66d89c464bb23f27a893ff79c328c5d08ee92bf3 | |
| parent | 34caa2ff9b28bf0d53e5abb4fb456892c8244a01 (diff) | |
qcacld-3.0: Fix NULL pointer dereferencing error in HDD
Issue has been identified in wlan_hdd_cfg80211_start_bss API where it is
trying to access ssid pointer before validating against NULL
which may result in system crash.
CRs-Fixed: 1110969
Change-Id: Ib70b9ed3bf7745aecfc9b2b2030a5fcc11c113b6
| -rw-r--r-- | core/hdd/src/wlan_hdd_hostapd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 52b7d35035e7..83626f58670d 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -7555,7 +7555,7 @@ int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter, } } if (!pHddCtx->config->force_sap_acs && - (0 != qdf_mem_cmp(ssid, PRE_CAC_SSID, ssid_len))) { + !(ssid && (0 == qdf_mem_cmp(ssid, PRE_CAC_SSID, ssid_len)))) { pIe = wlan_hdd_cfg80211_get_ie_ptr( &pMgmt_frame->u.beacon.variable[0], pBeacon->head_len, WLAN_EID_SUPP_RATES); |
