diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2021-08-01 11:30:57 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2021-08-01 11:30:57 +0000 |
commit | a39c99be08ccdc256ee55acd8207d8db87309862 (patch) | |
tree | 63dc9def72c1b669e2af84180ee6b8e71c008b47 /usr.sbin | |
parent | b13613aafb51edc78a17a5121b7276fb7a3be23b (diff) |
Set smi_application in usm's ber as well.
OK jmatthew@
Diffstat (limited to 'usr.sbin')
-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); |