summaryrefslogtreecommitdiff
path: root/lib/agentx.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-11-03 12:50:24 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-11-03 12:50:24 -0400
commitac3ee3270b0600850f292c2a3aae144ffa0803d0 (patch)
treea6cb362c6680f49764434fe75558eea03e9d7e2c /lib/agentx.c
parentd7cde18c63c4eef83e12f562aa025cf1dbeaee05 (diff)
lib: Fix double set of event pointer to NULL
The event system when executing a thread already sets the pointer of it to NULL. No need to do it again. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/agentx.c')
-rw-r--r--lib/agentx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/agentx.c b/lib/agentx.c
index 4c087219cb..6c2923fcf8 100644
--- a/lib/agentx.c
+++ b/lib/agentx.c
@@ -48,8 +48,6 @@ static void agentx_events_update(void);
static void agentx_timeout(struct thread *t)
{
- timeout_thr = NULL;
-
snmp_timeout();
run_alarms();
netsnmp_check_outstanding_agent_requests();