summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-12-28 18:10:01 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-12-28 18:10:01 +0000
commit17202280fa91f1f9c79acecc62f8ca3361105370 (patch)
treef94cbf1f9eb4fec5cc98df8a3f25cad6e6c9a445
parent616feba4c6b5dd2a5f11f3f025616bfa1e42b1ff (diff)
shrink the max number of supported OID elements from 128 to 32.
-rw-r--r--usr.sbin/snmpd/ber.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/ber.h b/usr.sbin/snmpd/ber.h
index 726515720e5..6c9f04f7873 100644
--- a/usr.sbin/snmpd/ber.h
+++ b/usr.sbin/snmpd/ber.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber.h,v 1.1 2007/12/05 09:22:44 reyk Exp $ */
+/* $OpenBSD: ber.h,v 1.2 2007/12/28 18:10:00 reyk Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net>
@@ -70,7 +70,7 @@ struct ber {
/* common definitions */
#define BER_MIN_OID_LEN 2 /* OBJECT */
-#define BER_MAX_OID_LEN 128 /* OBJECT */
+#define BER_MAX_OID_LEN 32 /* OBJECT */
struct ber_oid {
u_int32_t bo_id[BER_MAX_OID_LEN + 1];