projects
/
platform
/
core
/
connectivity
/
net-config.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4644ef7
)
Check NULL before use
53/231453/2
author
Cheoleun Moon
<chleun.moon@samsung.com>
Wed, 22 Apr 2020 05:05:35 +0000
(14:05 +0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Wed, 22 Apr 2020 05:06:38 +0000
(14:06 +0900)
Change-Id: Id2ee59375d74c3f1a6314726fa954957f44eafa1
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/wifi-bssid-scan.c
patch
|
blob
|
history
diff --git
a/src/wifi-bssid-scan.c
b/src/wifi-bssid-scan.c
index
200a671
..
ea1d592
100755
(executable)
--- a/
src/wifi-bssid-scan.c
+++ b/
src/wifi-bssid-scan.c
@@
-137,7
+137,7
@@
static void __netconfig_wifi_bssid_get_bss_info_result(
gsize bssid_len;
bssid = g_variant_get_fixed_array(value, &bssid_len, sizeof(guchar));
- if (bssid_len == NETCONFIG_BSSID_LEN)
+ if (bssid
!= NULL && bssid
_len == NETCONFIG_BSSID_LEN)
memcpy(bss_info->bssid, bssid, bssid_len);
} else if (g_strcmp0(key, "SSID") == 0) {
const guchar *ssid;