From f7925f75cebb0c2d0d186ce211d70be60e848ad2 Mon Sep 17 00:00:00 2001 From: martijn Date: Sun, 12 Nov 2023 20:07:48 +0000 Subject: [PATCH] Now that MIBDECL() fills in bo_n, no need to call smi_oidlen() anymore. OK tb@ --- usr.sbin/snmpd/smi.c | 3 +-- 1 file changed, 1 insertion(+), 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 @@ -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"); -- 2.20.1