diff options
author | chleun.moon <chleun.moon@samsung.com> | 2017-08-02 10:34:20 +0900 |
---|---|---|
committer | chleun.moon <chleun.moon@samsung.com> | 2017-08-02 10:34:26 +0900 |
commit | 46b62096c49da9e43c83fe24ecd1608d1c01f4ad (patch) | |
tree | 7eee71bfacc749d8f582eb4f341c9589d5beab01 | |
parent | e6662e565db5703fdb2c44113fe3d07204f0320a (diff) | |
download | connman-accepted/tizen_3.0_ivi.tar.gz connman-accepted/tizen_3.0_ivi.tar.bz2 connman-accepted/tizen_3.0_ivi.zip |
[WGID-260167] Add null checksubmit/tizen_3.0/20170802.052417accepted/tizen/3.0/wearable/20170803.011156accepted/tizen/3.0/tv/20170803.011133accepted/tizen/3.0/mobile/20170803.011108accepted/tizen/3.0/ivi/20170803.011218accepted/tizen/3.0/common/20170803.140635accepted/tizen_3.0_ivi
Change-Id: I689475436e4f12063cd891278a2130c729d653ef
Signed-off-by: cheoleun <chleun.moon@samsung.com>
-rwxr-xr-x | gsupplicant/supplicant.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index e9d6b9dc..bb7dc147 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -4934,6 +4934,11 @@ static void interface_add_network_params(DBusMessageIter *iter, void *user_data) if (ssid->bssid) { char *bssid = NULL; bssid = g_try_malloc0(18); + if (bssid == NULL) { + SUPPLICANT_DBG("memory allocation error"); + return; + } + snprintf(bssid, 18, "%02x:%02x:%02x:%02x:%02x:%02x", ssid->bssid[0], ssid->bssid[1], ssid->bssid[2], ssid->bssid[3], ssid->bssid[4], ssid->bssid[5]); |