summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2017-08-02 01:34:20 (GMT)
committerchleun.moon <chleun.moon@samsung.com>2017-08-02 01:34:26 (GMT)
commit46b62096c49da9e43c83fe24ecd1608d1c01f4ad (patch)
tree7eee71bfacc749d8f582eb4f341c9589d5beab01
parente6662e565db5703fdb2c44113fe3d07204f0320a (diff)
downloadconnman-accepted/tizen/3.0/mobile/20170803.011108.zip
connman-accepted/tizen/3.0/mobile/20170803.011108.tar.gz
connman-accepted/tizen/3.0/mobile/20170803.011108.tar.bz2
Change-Id: I689475436e4f12063cd891278a2130c729d653ef Signed-off-by: cheoleun <chleun.moon@samsung.com>
-rwxr-xr-xgsupplicant/supplicant.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index e9d6b9d..bb7dc14 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]);