summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2017-08-02 01:33:07 (GMT)
committerchleun.moon <chleun.moon@samsung.com>2017-08-02 01:33:13 (GMT)
commit1b56f4d34a2583a30be96f9e0e5dd44ab4c30be8 (patch)
tree550a680c23f58fc77c6b5aed5053dcd28c66ec2e
parent1c3a4d10a1a6ea783ced944b51914c5b08ac5dc1 (diff)
downloadconnman-1b56f4d34a2583a30be96f9e0e5dd44ab4c30be8.zip
connman-1b56f4d34a2583a30be96f9e0e5dd44ab4c30be8.tar.gz
connman-1b56f4d34a2583a30be96f9e0e5dd44ab4c30be8.tar.bz2
Change-Id: Ifc1e9e5d28fa2f58a0e7f98677daf08e4e3de161 Signed-off-by: cheoleun <chleun.moon@samsung.com>
-rwxr-xr-xgsupplicant/supplicant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 062bcd3..1c19771 100755
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -4979,6 +4979,10 @@ 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]);