From 8902e9bc4040c836ca13789fae4e9937285f5bae Mon Sep 17 00:00:00 2001 From: Karol Pawlowski Date: Mon, 23 Sep 2013 08:14:35 +0200 Subject: [PATCH] Fix Prevent issue [Issue#] CID: 13633 [Problem] Static analysis fails [Cause] N/A [Solution] Refactored error__refuse_dummy_process method [Verification] Build wrt repository. Launch widget with wrt-client -l and wrt-launcher -s Change-Id: I13445890810f98c372488aae0e62b97920f3d94b --- src/wrt-launchpad-daemon/src/process_pool.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wrt-launchpad-daemon/src/process_pool.c b/src/wrt-launchpad-daemon/src/process_pool.c index 170ea68..7c18e42 100644 --- a/src/wrt-launchpad-daemon/src/process_pool.c +++ b/src/wrt-launchpad-daemon/src/process_pool.c @@ -242,15 +242,7 @@ void __refuse_dummy_process(int server_fd) close(client_fd); _D("refuse connection!"); - return; - err__refuse_dummy_process: - - if (client_fd != -1) - { - close(client_fd); - } - return; } -- 2.7.4