summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-01-14 05:13:51 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-01-14 05:13:51 +0000
commit790b2be12d2c8c46b93e12db075e2a6006cd4dd3 (patch)
tree7e4b127847e9474b1bf0a156843029c20847a6aa /usr.sbin/snmpd
parent688fed501ad413b54e4e5fa6357045cb110b35e7 (diff)
sm_usmerr should be initialized with OIDVAL, not MIB; ok reyk@
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r--usr.sbin/snmpd/usm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/usm.c b/usr.sbin/snmpd/usm.c
index 7132d01e5b5..4cd7f6069fc 100644
--- a/usr.sbin/snmpd/usm.c
+++ b/usr.sbin/snmpd/usm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usm.c,v 1.4 2012/09/18 08:29:09 reyk Exp $ */
+/* $OpenBSD: usm.c,v 1.5 2013/01/14 05:13:50 miod Exp $ */
/*
* Copyright (c) 2012 GeNUA mbH
@@ -274,7 +274,7 @@ usm_decode(struct snmp_message *msg, struct ber_element *elm, const char **errp)
engine_time < (long long)(now - SNMP_MAX_TIMEWINDOW) ||
engine_time > (long long)(now + SNMP_MAX_TIMEWINDOW)) {
*errp = "out of time window";
- msg->sm_usmerr = MIB_usmStatsNotInTimeWindow;
+ msg->sm_usmerr = OIDVAL_usmErrTimeWindow;
stats->snmp_usmtimewindow++;
goto done;
}