SVACE #57179 80/63480/2 accepted/tizen/common/20160325.135710 accepted/tizen/ivi/20160325.072620 accepted/tizen/mobile/20160325.072446 accepted/tizen/tv/20160325.072517 accepted/tizen/wearable/20160325.072543 submit/tizen/20160325.045235
authortaesubkim <taesub.kim@samsung.com>
Thu, 24 Mar 2016 07:54:12 +0000 (16:54 +0900)
committerDeepak Kumar Sahu <deepak.sahu@samsung.com>
Thu, 24 Mar 2016 09:57:15 +0000 (15:27 +0530)
Change-Id: Ic4e91af1e5e495df89ce2f431e58ec415d813206
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Signed-off-by: Deepak Kumar Sahu <deepak.sahu@samsung.com>
framework/src/capi_vpn_service.c
packaging/capi-vpn-service.spec

index 05843ef..dba74cb 100755 (executable)
@@ -292,6 +292,7 @@ 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);
                _vpnsvc_deinit_vpnsvc_tun_s(tmp_s); //LCOV_EXCL_LINE
                return VPNSVC_ERROR_IO_ERROR; //LCOV_EXCL_LINE
        }
@@ -335,7 +336,7 @@ EXPORT_API int vpnsvc_init(const char* iface_name, vpnsvc_h *handle)
                        op = NULL;
                }
        }
-
+       close(iface_fd);
        return result;
 }
 
index f2bcd0b..656f661 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       vpnsvc-pkg
 Summary:    VPN service library in TIZEN C API
-Version:    1.0.7
+Version:    1.0.8
 Release:    1
 Group:      System/Network
 License:    Apache-2.0