]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Do not close control socket when there is an ethtool ioctl problem: we
authorVincent Bernat <bernat@luffy.cx>
Sun, 7 Dec 2008 15:29:43 +0000 (16:29 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 7 Dec 2008 15:29:43 +0000 (16:29 +0100)
want to use it for future ioctl...

src/priv.c

index deeb2e190f455c6d9d71043aed7b42417daa2ce4..9cd99f3ede5ea26ad78f9f1ad41a913b82a953aa 100644 (file)
@@ -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));