Not an issue with read requests, but will set requests if they contain
snmp application elements such as timeticks.

Definitely needed for upcoming SNMPv3 trap support.

OK?

martijn@

Index: usm.c
===================================================================
RCS file: /cvs/src/usr.sbin/snmpd/usm.c,v
retrieving revision 1.20
diff -u -p -r1.20 usm.c
--- usm.c       20 Jun 2021 19:55:48 -0000      1.20
+++ usm.c       22 Jul 2021 20:27:01 -0000
@@ -630,6 +630,7 @@ usm_decrypt(struct snmp_message *msg, st
                return NULL;
 
        bzero(&ber, sizeof(ber));
+       ober_set_application(&ber, smi_application);
        ober_set_readbuf(&ber, buf, scoped_pdu_len);
        scoped_pdu = ober_read_elements(&ber, NULL);
 


Reply via email to