summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-02-12 13:02:41 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-02-12 13:02:41 +0000
commitf231801ac16e75e9b81d7e54fe56944a054ec97b (patch)
treedafbaaba89505697a465115a443314634f2a486e /perl-install
parent4b3794f3efc7bb834bcce0bb13e1f5956d3c48c8 (diff)
downloaddrakx-backup-do-not-use-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar
drakx-backup-do-not-use-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar.gz
drakx-backup-do-not-use-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar.bz2
drakx-backup-do-not-use-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar.xz
drakx-backup-do-not-use-f231801ac16e75e9b81d7e54fe56944a054ec97b.zip
close socket everytime in hasNetDevice
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/c/stuff.xs.pm2
1 files changed, 1 insertions, 1 deletions
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