summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2020-02-14 15:08:47 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2020-02-14 15:08:47 +0000
commit66480866446ef9a97e8b4c8ed3fd4496c4e31a94 (patch)
treed48e9b59032389542156a2ec74ef0a0fe16c1671 /usr.sbin
parent27acc75eb27ce7e4a090279c98ecfa53b9a07bf8 (diff)
Don't log a generr in stats when there is no error.
OK gerhard@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/snmpd/snmpe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c
index aba19dc5ec1..375014c76b5 100644
--- a/usr.sbin/snmpd/snmpe.c
+++ b/usr.sbin/snmpd/snmpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpe.c,v 1.60 2019/10/24 12:39:27 tb Exp $ */
+/* $OpenBSD: snmpe.c,v 1.61 2020/02/14 15:08:46 martijn Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -766,6 +766,8 @@ snmpe_response(struct snmp_message *msg)
msg->sm_varbindresp = ober_unlink_elements(msg->sm_pduend);
switch (msg->sm_error) {
+ case SNMP_ERROR_NONE:
+ break;
case SNMP_ERROR_TOOBIG:
stats->snmp_intoobigs++;
break;