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 "enabled" parameter for NULL before derefering
38/190238/1
author
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Fri, 28 Sep 2018 10:11:40 +0000
(15:41 +0530)
committer
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Fri, 28 Sep 2018 10:12:11 +0000
(15:42 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Ib58a49779bf6e6523421c4b497abb7eca4a93201
src/network-wifi-intf.c
patch
|
blob
|
history
diff --git
a/src/network-wifi-intf.c
b/src/network-wifi-intf.c
index 777cea6f0c2f2d015ed82577e472ad2509467d9e..fb82e728d30a71efa623a99eac70ee3a38a082e6 100755
(executable)
--- a/
src/network-wifi-intf.c
+++ b/
src/network-wifi-intf.c
@@
-187,6
+187,12
@@
EXPORT_API int net_wifi_get_passpoint(int *enabled)
{
__NETWORK_FUNC_ENTER__;
+ if (enabled == NULL) {
+ __NETWORK_FUNC_EXIT__;
+ return NET_ERR_INVALID_PARAM;
+ }
+
+
net_err_t Error = NET_ERR_NONE;
if (NetworkInfo.ref_count < 1) {