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 parameter for NULL
34/190234/2
author
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Fri, 28 Sep 2018 10:05:55 +0000
(15:35 +0530)
committer
Abhishek Sansanwal
<abhishek.s94@samsung.com>
Wed, 3 Oct 2018 10:28:03 +0000
(15:58 +0530)
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I6ab32a5902c2cc19e396ee243188e1b4df077c9a
src/network-cm-intf.c
patch
|
blob
|
history
diff --git
a/src/network-cm-intf.c
b/src/network-cm-intf.c
index
4b75ac6
..
0a4b377
100755
(executable)
--- a/
src/network-cm-intf.c
+++ b/
src/network-cm-intf.c
@@
-1034,6
+1034,11
@@
EXPORT_API int net_get_technology_properties(net_device_t tech_type, net_tech_in
__NETWORK_FUNC_ENTER__;
+ if (tech_info == 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__;