From f231801ac16e75e9b81d7e54fe56944a054ec97b Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 12 Feb 2001 13:02:41 +0000 Subject: close socket everytime in hasNetDevice --- perl-install/c/stuff.xs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/c') diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm index c115a8b0e..8e09a2490 100644 --- a/perl-install/c/stuff.xs.pm +++ b/perl-install/c/stuff.xs.pm @@ -280,7 +280,7 @@ hasNetDevice(device) strcpy(req.ifr_name, device); RETVAL = ioctl(s, SIOCGIFFLAGS, &req) == 0; - if (!RETVAL) close(s); + close(s); OUTPUT: RETVAL -- cgit v1.2.1