From: martijn Date: Wed, 8 Nov 2023 19:50:24 +0000 (+0000) Subject: On second thought let's not overwrite sm_pdutype with a hardcoded value X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=471fc3bc713927a3323a24f1b69eff4090db797b;p=openbsd On second thought let's not overwrite sm_pdutype with a hardcoded value after just setting it, it's a silly idea. OK tb@ --- diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c index 1d3e7e2ccb7..669fbd0ac53 100644 --- a/usr.sbin/snmpd/snmpe.c +++ b/usr.sbin/snmpd/snmpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpe.c,v 1.88 2023/03/08 04:43:15 guenther Exp $ */ +/* $OpenBSD: snmpe.c,v 1.89 2023/11/08 19:50:24 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter @@ -760,7 +760,6 @@ snmpe_send(struct snmp_message *msg, enum snmp_pdutype type, int32_t requestid, msg->sm_errorindex = index; msg->sm_varbindresp = varbindlist; - msg->sm_pdutype = SNMP_C_RESPONSE; snmpe_response(msg); }