Fix svace for 102129 69/75869/1 accepted/tizen/common/20160627.191219 accepted/tizen/ivi/20160623.121443 accepted/tizen/mobile/20160623.121355 accepted/tizen/tv/20160623.121408 accepted/tizen/wearable/20160623.121430 submit/tizen/20160622.070923
authorhyunuktak <hyunuk.tak@samsung.com>
Wed, 22 Jun 2016 04:27:37 +0000 (13:27 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Wed, 22 Jun 2016 04:27:39 +0000 (13:27 +0900)
Variable 'iface_fd' is used by calling function 'close'
after comparison with negative value.

Change-Id: Ia5a853cccdba011177dc538c762ad15ff9060705
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/capi-vpn-service.spec
src/capi_vpn_service.c

index 6d55a53..303e576 100755 (executable)
@@ -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
index 0cc758f..b76677f 100755 (executable)
@@ -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
        }