]> git.ipfire.org Git - thirdparty/squid.git/commit
SNMP: Fix OID truncation and sibling lookup (#2244)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Sat, 18 Oct 2025 15:15:07 +0000 (15:15 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 19 Oct 2025 00:55:00 +0000 (00:55 +0000)
commit1e71bafbd82223c05202acecd4bd6adbf60726b9
treeb547c32eefbf011e21df2ccd0a96e2b9275844ce
parent5f928fa665c677c8b54a37bcc8265d08df46a651
SNMP: Fix OID truncation and sibling lookup (#2244)

Previously, SNMP OIDs could be truncated (peer_Inst didn't update
the length after appending a subid), snmpTreeSiblingEntry() misused
len and sometimes returned the wrong sibling or stepped past the
end.

Now we update the OID length while building, select siblings
by matching name[len] (returning the right neighbor only if present).

Also, cleanup socket closure.
src/snmp_core.cc