From be9fd6ec82c8d300926323d7911ba66f26491786 Mon Sep 17 00:00:00 2001 From: Abhishek Sansanwal Date: Fri, 28 Sep 2018 15:35:55 +0530 Subject: [PATCH] Check parameter for NULL Signed-off-by: Abhishek Sansanwal Change-Id: I6ab32a5902c2cc19e396ee243188e1b4df077c9a --- src/network-cm-intf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/network-cm-intf.c b/src/network-cm-intf.c index 4b75ac6..0a4b377 100755 --- 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__; -- 2.7.4