diff options
-rw-r--r-- | usr.sbin/snmpd/usm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/usm.c b/usr.sbin/snmpd/usm.c index 71aaa2e211f..04e8ef7cd5f 100644 --- a/usr.sbin/snmpd/usm.c +++ b/usr.sbin/snmpd/usm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usm.c,v 1.20 2021/06/20 19:55:48 martijn Exp $ */ +/* $OpenBSD: usm.c,v 1.21 2021/08/01 11:30:56 martijn Exp $ */ /* * Copyright (c) 2012 GeNUA mbH @@ -630,6 +630,7 @@ usm_decrypt(struct snmp_message *msg, struct ber_element *encr) 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); |