From 9345553c54b651f520b9ade53af927e56fc04fab Mon Sep 17 00:00:00 2001 From: martijn Date: Sun, 1 Aug 2021 11:30:56 +0000 Subject: [PATCH] Set smi_application in usm's ber as well. OK jmatthew@ --- usr.sbin/snmpd/usm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1