projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d580f40
)
Fix derefrencing of NULL pointer
13/242813/1
accepted/tizen/unified/20200903.151723
submit/tizen/20200901.053326
submit/tizen/20200902.111409
submit/tizen/20200903.044940
author
Jaehyun Kim
<jeik01.kim@samsung.com>
Tue, 1 Sep 2020 05:20:41 +0000
(14:20 +0900)
committer
Jaehyun Kim
<jeik01.kim@samsung.com>
Tue, 1 Sep 2020 05:20:41 +0000
(14:20 +0900)
In some cases wifi->network is NULL which leads to crash
Change-Id: Ie02bb6a84f25d816935b492169feed2aca7f76b8
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
plugins/wifi.c
patch
|
blob
|
history
diff --git
a/plugins/wifi.c
b/plugins/wifi.c
index
8fe2be3
..
a1da419
100755
(executable)
--- a/
plugins/wifi.c
+++ b/
plugins/wifi.c
@@
-3905,7
+3905,9
@@
static gboolean autosignalpoll_timeout(gpointer data)
if (ret < 0) {
DBG("Fail to get max speed !!");
wifi->automaxspeed_timeout = 0;
- connman_network_unref(wifi->network);
+
+ if (wifi->network)
+ connman_network_unref(wifi->network);
return FALSE;
}