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>
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
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
}