]>
Commit | Line | Data |
---|---|---|
cf3659bc AM |
1 | 544849 - snmpd segfaults when openvpn is running |
2 | ||
3 | Source: upstream, svn rev. 17931 | |
4 | ||
5 | Clear the bcastentry in every loop iteration. If not cleared, the bcastentry | |
6 | might be insterted into the container twice, when processing an interface | |
7 | without broadcast address (like OpenVPN's tun0). | |
8 | ||
9 | diff -up net-snmp-5.5/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c.new net-snmp-5.5/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c | |
10 | --- net-snmp-5.5/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c.new 2009-05-06 23:59:20.000000000 +0200 | |
11 | +++ net-snmp-5.5/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c 2009-12-21 15:58:02.000000000 +0100 | |
12 | @@ -135,7 +135,6 @@ _netsnmp_ioctl_ipaddress_container_load_ | |
13 | struct ifreq *ifrp; | |
14 | struct sockaddr save_addr; | |
15 | struct sockaddr_in * si; | |
16 | - netsnmp_ipaddress_entry *entry, *bcastentry = NULL; | |
17 | struct address_flag_info addr_info; | |
18 | in_addr_t ipval; | |
19 | _ioctl_extras *extras; | |
20 | @@ -156,6 +155,7 @@ _netsnmp_ioctl_ipaddress_container_load_ | |
21 | ||
22 | ifrp = ifc.ifc_req; | |
23 | for(i=0; i < interfaces; ++i, ++ifrp) { | |
24 | + netsnmp_ipaddress_entry *entry, *bcastentry = NULL; | |
25 | ||
26 | DEBUGMSGTL(("access:ipaddress:container", | |
27 | " interface %d, %s\n", i, ifrp->ifr_name)); |