bug report in route_linux.c

2015-05-03 Thread Pete Flugstad
In Net-SNMP 5.7.3, the file agent/mibgroup/ip-forward-mib/data_access/route_linux.c, the function _load_ipv6 opens /proc/net/ipv6_route and processes it's contents. Immediately after opening the code does: fgets(line,sizeof(line),in); /* skip header */ However, in my version of linux (3.16.0

potential socket leak in ipaddress_linux

2015-05-03 Thread Pete Flugstad
In the function netsnmp_access_other_info_get, a netlink socket is created to communicate with the kernel. However, all the error cases in the function neglect to close the socket, so if any of those errors are ever hit, the socket will leak. Pete -

bug report in systemstats_linux.c

2015-05-03 Thread Pete Flugstad
In systemstats_linux.c, in systemstats_v6_load_file, while parsing /proc/net/snmp6, two lines are confused: Ip6InNoECTPkts 14583 Ip6InNoRoutes 0 However, when Ip6InNoECTPkts is encountered in , it is interpreted as IpInNoRoutes, which shows up