Add NULL check 00/55100/2 accepted/tizen/mobile/20151230.120838 accepted/tizen/tv/20151230.121121 submit/tizen_mobile/20151230.092333 submit/tizen_tv/20151230.092321
authorsungwon2.han <sungwon2.han@samsung.com>
Tue, 22 Dec 2015 02:05:53 +0000 (11:05 +0900)
committersungwon2.han <sungwon2.han@samsung.com>
Tue, 22 Dec 2015 02:09:56 +0000 (11:09 +0900)
pointer 'client' was dereferenced without NULL check.

Change-Id: Ic372dc9fb02b0e69a00af96824cd8fd8708623a7

provider/browser-provider-requests-manager.c

index 2356ca613ab2a4a5b7cbd2f3d203c2a8cf053169..838bb397dad533fca21c416b9e5e2e01719f99f0 100755 (executable)
@@ -464,8 +464,10 @@ void *client_thread_idle(void *arg)
 
        }
 
-       FD_CLR(client->cmd_socket, &imask);
-       FD_CLR(client->cmd_socket, &emask);
+       if (client != NULL) {
+               FD_CLR(client->cmd_socket, &imask);
+               FD_CLR(client->cmd_socket, &emask);
+       }
        bp_client_free(client);
        slot->client = NULL;
        return 0;