Add NULL check when receive msg error 47/53947/2 accepted/tizen/mobile/20151211.054310 accepted/tizen/tv/20151211.062402 accepted/tizen/wearable/20151211.061113 submit/tizen/20151211.002025
authorMinje Ahn <minje.ahn@samsung.com>
Thu, 10 Dec 2015 09:34:40 +0000 (18:34 +0900)
committerhj kim <backto.kim@samsung.com>
Thu, 10 Dec 2015 09:39:01 +0000 (01:39 -0800)
Change-Id: I63ad77933d9a070d544f5a3747932840ef52c5c2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
lib/media-util-register.c

index 4b44125..0d12c61 100755 (executable)
@@ -202,6 +202,10 @@ gboolean _read_socket(GIOChannel *src, GIOCondition condition, gpointer data)
        MSAPI_DBG("request_type :%d", req_result.request_type);
 
 ERROR:
+       if (req_result.complete_path == NULL) {
+               MSAPI_DBG_ERR("complete_path is NULL");
+               return TRUE;
+       }
         /*NEED MUTEX*/
         g_mutex_lock(&scan_req_mutex);
         if (req_list != NULL) {