From 9bd6013f577b109b5a879784e6a337ce8649ca3d Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Wed, 22 Jun 2016 13:27:37 +0900 Subject: [PATCH] Fix svace for 102129 Variable 'iface_fd' is used by calling function 'close' after comparison with negative value. Change-Id: Ia5a853cccdba011177dc538c762ad15ff9060705 Signed-off-by: hyunuktak --- packaging/capi-vpn-service.spec | 2 +- src/capi_vpn_service.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packaging/capi-vpn-service.spec b/packaging/capi-vpn-service.spec index 6d55a53..303e576 100755 --- a/packaging/capi-vpn-service.spec +++ b/packaging/capi-vpn-service.spec @@ -1,6 +1,6 @@ Name: vpnsvc-pkg Summary: VPN service library in TIZEN C API -Version: 1.0.22 +Version: 1.0.23 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/capi_vpn_service.c b/src/capi_vpn_service.c index 0cc758f..b76677f 100755 --- a/src/capi_vpn_service.c +++ b/src/capi_vpn_service.c @@ -265,7 +265,6 @@ EXPORT_API int vpnsvc_init(const char* iface_name, vpnsvc_h *handle) if ((iface_fd = open("/dev/net/tun", O_RDWR)) < 0) { LOGE("tun device open fail\n"); //LCOV_EXCL_LINE - close(iface_fd);//LCOV_EXCL_LINE _vpnsvc_deinit_vpnsvc_tun_s(tmp_s); //LCOV_EXCL_LINE return VPNSVC_ERROR_IO_ERROR; //LCOV_EXCL_LINE } -- 2.7.4