]> git.ipfire.org Git - thirdparty/squid.git/commit - lib/snmplib/asn1.c
Fix SNMP reporting of counters with a value >= 0xFF800000
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 18 Jun 2008 18:49:32 +0000 (20:49 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 18 Jun 2008 18:49:32 +0000 (20:49 +0200)
commitce1206d7fe8421c46a7e77c0944dc67eac0cf880
treec03934c9aa9fa200fb65880f261f353f954cc85c
parent7d9acc3cde214d7d7b5b6f1801983053d17158ff
Fix SNMP reporting of counters with a value >= 0xFF800000

The ASN.1 encoding of unsigned integers incorrectly compressed the value
as if it was a signed integer, truncating leading 0xFF octest, causing
0xFF800000 to be send ax 0x800000, 0xFFFF8000 as 0x8000 etc..
snmplib/asn1.c