diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-11-13 10:14:30 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-11-13 10:14:30 +0000 |
commit | afe9474f23010fb817775f449f7bb0922a09d3dd (patch) | |
tree | e2aa4819f0ed34fc1bee530d3e9e0cc101de2e1b /usr.sbin | |
parent | c529275310345114d86fd9e86145bba0eb8aae10 (diff) |
struct appl_varbind_internal's avi_index is used to give the index to
the original varbindlist's index. In the case of a GetBulkRequest this
must never be larger than the length of the original varbindlist.
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/snmpd/application.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/application.c b/usr.sbin/snmpd/application.c index 434146f6513..916fc8dfae1 100644 --- a/usr.sbin/snmpd/application.c +++ b/usr.sbin/snmpd/application.c @@ -1,4 +1,4 @@ -/* $OpenBSD: application.c,v 1.36 2023/11/12 16:07:34 martijn Exp $ */ +/* $OpenBSD: application.c,v 1.37 2023/11/13 10:14:29 martijn Exp $ */ /* * Copyright (c) 2021 Martijn van Duren <martijn@openbsd.org> @@ -911,6 +911,8 @@ appl_processpdu(struct snmp_message *statereference, const char *ctxname, ureq->aru_vblist[i - repeaterlen].avi_sub = &(ureq->aru_vblist[i]); ureq->aru_vblist[i].avi_state = APPL_VBSTATE_MUSTFILL; + ureq->aru_vblist[i].avi_index = + ureq->aru_vblist[i - repeaterlen].avi_index; continue; } ober_get_oid(varbind->be_sub, |