diff --git a/proto/snmp/snmp.c b/proto/snmp/snmp.c index 0aa17dd3..e8d30d7e 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 83f3b5bf..5c5a6429 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;