5f484e443f
- fix potential race condition in fixproc script - fix DOS vulnerability on tcp connections help & ok sturm@
17 lines
540 B
Plaintext
17 lines
540 B
Plaintext
$OpenBSD: patch-agent_mibgroup_mibII_interfaces_c,v 1.2 2005/11/05 19:09:38 bernd Exp $
|
|
--- agent/mibgroup/mibII/interfaces.c.orig Sun Jun 19 15:47:57 2005
|
|
+++ agent/mibgroup/mibII/interfaces.c Thu Nov 3 23:31:04 2005
|
|
@@ -2218,11 +2218,10 @@ Interface_Scan_Get_Count(void)
|
|
|
|
#else /* hpux11 */
|
|
|
|
-static time_t scan_time = 0;
|
|
-
|
|
int
|
|
Interface_Scan_Get_Count(void)
|
|
{
|
|
+ static time_t scan_time = 0;
|
|
time_t time_now = time(NULL);
|
|
|
|
if (!Interface_Count || (time_now > scan_time + 60)) {
|