From dd9e1323b5b85098d89f90b7dc29a896cb55f7a9 Mon Sep 17 00:00:00 2001 From: Vojtech Vilimek Date: Wed, 14 Aug 2024 12:26:20 +0200 Subject: [PATCH] SNMP: cleanup --- proto/snmp/snmp.c | 4 ---- proto/snmp/snmp.h | 1 - 2 files changed, 5 deletions(-) diff --git a/proto/snmp/snmp.c b/proto/snmp/snmp.c index 0aa17dd33..e8d30d7ed 100644 --- a/proto/snmp/snmp.c +++ b/proto/snmp/snmp.c @@ -396,9 +396,6 @@ snmp_cleanup(struct snmp_proto *p) rfree(p->lp); p->bgp_trie = NULL; - rfree(p->end_oids); - p->end_oids = NULL; - p->state = SNMP_DOWN; } @@ -553,7 +550,6 @@ snmp_start(struct proto *P) p->lp = lp_new(p->pool); p->mib_tree = mb_alloc(p->pool, sizeof(struct mib_tree)); p->bgp_trie = f_new_trie(p->lp, 0); - p->end_oids = lp_new(p->pool); p->startup_timer = tm_new_init(p->pool, snmp_startup_timeout, p, 0, 0); p->ping_timer = tm_new_init(p->pool, snmp_ping_timeout, p, p->timeout, 0); diff --git a/proto/snmp/snmp.h b/proto/snmp/snmp.h index 83f3b5bf1..5c5a6429f 100644 --- a/proto/snmp/snmp.h +++ b/proto/snmp/snmp.h @@ -98,7 +98,6 @@ struct snmp_proto { struct object_lock *lock; pool *pool; /* a shortcut to the procotol mem. pool */ linpool *lp; /* linpool for bgp_trie nodes */ - linpool *end_oids; enum snmp_proto_state state; -- 2.47.2