From: HyeKyoung Hwang Date: Wed, 12 Apr 2017 01:57:55 +0000 (+0900) Subject: Fix the Svace Issue 144361,144898 X-Git-Tag: submit/tizen/20170412.022940^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14059002eca0cd7be113cca1c4864735a71cc14c;p=platform%2Fframework%2Fweb%2Fbrowser-provider.git Fix the Svace Issue 144361,144898 Change-Id: I6f31b4684c49e5ce534202acf9cc856b91aac158 Signed-off-by: HyeKyoung Hwang --- diff --git a/provider/browser-provider-requests-manager.c b/provider/browser-provider-requests-manager.c index 8912c5e..beb8d1d 100755 --- a/provider/browser-provider-requests-manager.c +++ b/provider/browser-provider-requests-manager.c @@ -650,15 +650,17 @@ void bp_thread_requests_manager(bp_privates_defs *privates) } if (oldest_index >= 0) { - bp_client_defs *client = + bp_client_defs *client = privates->slots[oldest_index].client; - TRACE_WARN - ("clear client[%s:%d] slot:%d sock:%d", - __print_client_type(client->type), - client->cid, oldest_index, - client->cmd_socket); - if (client->cmd_socket >= 0) - FD_CLR(client->cmd_socket, &listen_fdset); + if (client != NULL) { + TRACE_WARN + ("clear client[%s:%d] slot:%d sock:%d", + __print_client_type(client->type), + client->cid, oldest_index, + client->cmd_socket); + if (client->cmd_socket >= 0) + FD_CLR(client->cmd_socket, &listen_fdset); + } bp_remove_client_from_slot(&privates->slots[oldest_index]); i = oldest_index; } else {