diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2022-02-22 15:59:14 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2022-02-22 15:59:14 +0000 |
commit | 0e527d3fb18885ecb042f4a28a19d6b78bee281b (patch) | |
tree | f8b28fd68a34708f44d1fedd5fe391cc73fb030d /usr.sbin | |
parent | cf8c3ad07f8d33c60a97363215009d931285a0c7 (diff) |
requestid is a 32 bit integer, make sure that we request that with
ober_scanf_elements.
Found the hard way on octeon and patch tested by sebastian <at> rostwald
<dot> de
OK tb
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/snmpd/application.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/application.c b/usr.sbin/snmpd/application.c index 00659f04246..48ab925ae5f 100644 --- a/usr.sbin/snmpd/application.c +++ b/usr.sbin/snmpd/application.c @@ -1,4 +1,4 @@ -/* $OpenBSD: application.c,v 1.2 2022/01/30 13:27:39 martijn Exp $ */ +/* $OpenBSD: application.c,v 1.3 2022/02/22 15:59:13 martijn Exp $ */ /* * Copyright (c) 2021 Martijn van Duren <martijn@openbsd.org> @@ -610,7 +610,7 @@ appl_processpdu(struct snmp_message *statereference, const char *ctxname, size_t i, varbindlen = 0, repeaterlen; /* pdu must be ASN.1 validated in snmpe.c */ - (void) ober_scanf_elements(pdu, "{iiie", &requestid, &nonrepeaters, + (void) ober_scanf_elements(pdu, "{diie", &requestid, &nonrepeaters, &maxrepetitions, &varbindlist); /* RFC 3413, section 3.2, processPDU, item 5, final bullet */ |