Check if the target is NULL in ssdp_create_local_service().
SSDP_ERROR_INVALID_PARAMETER is returned when NULL is passed as target
Change-Id: Ibcc9cf094c6935e056961f62556cff16f3105879
Signed-off-by: cheoleun <chleun.moon@samsung.com>
return SSDP_ERROR_NOT_INITIALIZED; //LCOV_EXCL_LINE
}
+ if (target == NULL) {
+ SSDP_LOGE("target is NULL");
+ __SSDP_LOG_FUNC_EXIT__;
+ return SSDP_ERROR_INVALID_PARAMETER;
+ }
+
if (ssdp_service == NULL) {
- SSDP_LOGE("Invalid parameter");
+ SSDP_LOGE("ssdp_service is NULL");
__SSDP_LOG_FUNC_EXIT__;
return SSDP_ERROR_INVALID_PARAMETER;
}