summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2017-08-02 10:34:20 +0900
committerchleun.moon <chleun.moon@samsung.com>2017-08-02 10:34:26 +0900
commit46b62096c49da9e43c83fe24ecd1608d1c01f4ad (patch)
tree7eee71bfacc749d8f582eb4f341c9589d5beab01
parente6662e565db5703fdb2c44113fe3d07204f0320a (diff)
downloadconnman-accepted/tizen_3.0_ivi.tar.gz
connman-accepted/tizen_3.0_ivi.tar.bz2
connman-accepted/tizen_3.0_ivi.zip
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 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]);