]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Close SNMP socket in monitor process
authorVincent Bernat <bernat@luffy.cx>
Sun, 16 Nov 2008 19:39:52 +0000 (20:39 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 16 Nov 2008 19:39:52 +0000 (20:39 +0100)
src/priv.c

index 2828414b4eef7e01d29108d5ee0aeea4ab2dc768..c74ddbe171ac6378ffb75781180de42bf9fcdb34 100644 (file)
@@ -452,6 +452,7 @@ asroot_snmp_socket()
         }
        must_write(remote, &rc, sizeof(int));
        send_fd(remote, sock);
+       close(sock);
 }
 
 struct dispatch_actions {