- fix potential race condition in fixproc script - fix DOS vulnerability on tcp connections help & ok sturm@
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
$OpenBSD: patch-agent_mibgroup_mibII_tcpTable_c,v 1.3 2005/11/05 19:09:38 bernd Exp $
|
|
--- agent/mibgroup/mibII/tcpTable.c.orig Mon Jun 20 15:17:03 2005
|
|
+++ agent/mibgroup/mibII/tcpTable.c Fri Nov 4 01:25:25 2005
|
|
@@ -450,7 +450,7 @@ tcpTable_next_entry( void **loop_context
|
|
* and update the loop context ready for the next one.
|
|
*/
|
|
*data_context = (void*)entry;
|
|
- *loop_context = (void*)entry->INP_NEXT_SYMBOL;
|
|
+ *loop_context = (void*)entry->inp_next;
|
|
return index;
|
|
}
|
|
|
|
@@ -460,7 +460,7 @@ tcpTable_free(netsnmp_cache *cache, void
|
|
TCPTABLE_ENTRY_TYPE *p;
|
|
while (tcp_head) {
|
|
p = tcp_head;
|
|
- tcp_head = tcp_head->INP_NEXT_SYMBOL;
|
|
+ tcp_head = tcp_head->inp_next;
|
|
free(p);
|
|
}
|
|
|
|
@@ -796,7 +796,7 @@ tcpTable_load(netsnmp_cache *cache, void
|
|
nnew->state == 8 /* closeWait */ )
|
|
tcp_estab++;
|
|
|
|
- entry = nnew->INP_NEXT_SYMBOL; /* Next kernel entry */
|
|
+ entry = nnew->inp_next; /* Next kernel entry */
|
|
nnew->inp_next = tcp_head;
|
|
tcp_head = nnew;
|
|
|