]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix handling of bad SNMP variable type when parsing IP_* vars (#1097)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 24 Jul 2022 18:56:53 +0000 (18:56 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 24 Jul 2022 20:11:16 +0000 (20:11 +0000)
commitccea54529305f0cc69e4cddc63db68ba22285d04
treed16c822773629a61e006632682c4d54d0ce0b2a9
parent0ac163be29691c2c8a296153331e4f6f862b2356
Fix handling of bad SNMP variable type when parsing IP_* vars (#1097)

AFAICT, we never associate snmp_netIpFn() with the wrong variable type,
so we may be dealing with a bug in an effectively unreachable code here.

1999 commit 736eb6a correctly removed snmp_var_free() call from most
refactored SNMP functions but missed snmp_netIpFn() and
snmp_meshCtblFn() cases. The latter was fixed in 2000 commit d20b1cd.

Detected by static analyzer Svace v3.2.1.
src/ipcache.cc