summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2023-11-12 20:07:49 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2023-11-12 20:07:49 +0000
commit4bba62cbdb4fa05656c79b54394d866c682fbb5b (patch)
treeab4fba13e9bb6eb7053012703ae7ab836ff611d3 /usr.sbin
parent076633368e084c7b0ab99d2522c946e13977645f (diff)
Now that MIBDECL() fills in bo_n, no need to call smi_oidlen() anymore.
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/snmpd/smi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/smi.c b/usr.sbin/snmpd/smi.c
index e10717ac807..423bf5c2590 100644
--- a/usr.sbin/snmpd/smi.c
+++ b/usr.sbin/snmpd/smi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smi.c,v 1.34 2023/11/12 20:04:35 martijn Exp $ */
+/* $OpenBSD: smi.c,v 1.35 2023/11/12 20:07:48 martijn Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -213,7 +213,6 @@ smi_mibtree(struct oid *oids)
for (i = 0; oids[i].o_oid[0] != 0; i++) {
oid = &oids[i];
- smi_oidlen(&oid->o_id);
if (oid->o_name != NULL) {
if ((oid->o_flags & OID_TABLE) && oid->o_get == NULL)
fatalx("smi_mibtree: invalid MIB table");