projects
/
platform
/
core
/
connectivity
/
libnet-client.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b89dea
)
Check "current_state" parameter for NULL before derefering
40/190240/1
author
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Fri, 28 Sep 2018 10:13:29 +0000
(15:43 +0530)
committer
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Fri, 28 Sep 2018 10:14:11 +0000
(15:44 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I590d3c75a2c0d0bb7d66c28a124fbb76c50b8f11
src/network-wifi-intf.c
patch
|
blob
|
history
diff --git
a/src/network-wifi-intf.c
b/src/network-wifi-intf.c
index
777cea6
..
c8055ec
100755
(executable)
--- a/
src/network-wifi-intf.c
+++ b/
src/network-wifi-intf.c
@@
-645,6
+645,11
@@
EXPORT_API int net_get_wifi_state(net_wifi_state_t *current_state)
net_err_t Error = NET_ERR_NONE;
+ if (current_state == NULL) {
+ __NETWORK_FUNC_EXIT__;
+ return NET_ERR_INVALID_PARAM;
+ }
+
if (NetworkInfo.ref_count < 1) {
NETWORK_LOG(NETWORK_ERROR, "Application is not registered");
__NETWORK_FUNC_EXIT__;