From: Vincent Bernat Date: Sun, 7 Dec 2008 15:29:43 +0000 (+0100) Subject: Do not close control socket when there is an ethtool ioctl problem: we X-Git-Tag: 0.3~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0a395035d6cdfb3465a083b99c6f920b248ffe5;p=thirdparty%2Flldpd.git Do not close control socket when there is an ethtool ioctl problem: we want to use it for future ioctl... --- diff --git a/src/priv.c b/src/priv.c index deeb2e19..9cd99f3e 100644 --- a/src/priv.c +++ b/src/priv.c @@ -319,7 +319,6 @@ asroot_ethtool() LLOG_DEBUG("[priv]: unable to ioctl ETHTOOL for %s", ifr.ifr_name); must_write(remote, &rc, sizeof(int)); - close(sock); return; } must_write(remote, &rc, sizeof(int));