Now that MIBDECL() fills in bo_n, no need to call smi_oidlen() anymore.
authormartijn <martijn@openbsd.org>
Sun, 12 Nov 2023 20:07:48 +0000 (20:07 +0000)
committermartijn <martijn@openbsd.org>
Sun, 12 Nov 2023 20:07:48 +0000 (20:07 +0000)
OK tb@

usr.sbin/snmpd/smi.c

index e10717a..423bf5c 100644 (file)
@@ -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");