net-snmp/net-snmp-5.0.8-ipv6-sock-close.patch
2008-07-25 11:03:32 +00:00

12 lines
539 B
Diff

diff -up net-snmp-5.4.1/agent/mibgroup/mibII/ipv6.c.backup_patch_2 net-snmp-5.4.1/agent/mibgroup/mibII/ipv6.c
--- net-snmp-5.4.1/agent/mibgroup/mibII/ipv6.c.backup_patch_2 2007-05-25 00:01:04.000000000 +0200
+++ net-snmp-5.4.1/agent/mibgroup/mibII/ipv6.c 2008-07-25 12:52:36.000000000 +0200
@@ -2017,6 +2017,7 @@ var_ifv6Entry(register struct variable *
break;
}
long_return = (ifr.ifr_flags & flag) ? 1 : 2;
+ close(s);
return (u_char *) & long_return;
}
}