From 87bb26cfb63709d4d1171617b31ea929573136f5 Mon Sep 17 00:00:00 2001 From: martijn Date: Sun, 1 Aug 2021 11:36:48 +0000 Subject: [PATCH] Allow trapv2 packages to be submitted over SNMPv3. This is a type-O that snuck in when merging traphandler into snmpe. OK jmatthew@ --- usr.sbin/snmpd/snmpe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c index 49294633525..5fcb9171381 100644 --- a/usr.sbin/snmpd/snmpe.c +++ b/usr.sbin/snmpd/snmpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpe.c,v 1.72 2021/06/20 19:55:48 martijn Exp $ */ +/* $OpenBSD: snmpe.c,v 1.73 2021/08/01 11:36:48 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter @@ -381,7 +381,7 @@ badversion: case SNMP_C_TRAPV2: if (msg->sm_pdutype == SNMP_C_TRAPV2 && !(msg->sm_version == SNMP_V2 || - msg->sm_version != SNMP_V3)) { + msg->sm_version == SNMP_V3)) { msg->sm_errstr = "trapv2 request on !SNMPv2C or " "!SNMPv3 message"; goto parsefail; -- 2.20.1