]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 3825: basic_ncsa_auth segfaulting with glibc-2.17
authorMichal Luscon <mluscon@redhat.com>
Thu, 18 Apr 2013 05:30:47 +0000 (23:30 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 18 Apr 2013 05:30:47 +0000 (23:30 -0600)
commit46b23bfd18b34fc064dc56b7edd0719c1a1c777b
tree6ac45c11056693ff29cc57ab6b4b8ff092315365
parent23be32a9f3784096838c9fb69148654f745cf4e9
Bug 3825: basic_ncsa_auth segfaulting with glibc-2.17

It appears the crypt() function may return NULL strings. Check for those
before all strcmp() operations.

NOTE: The MD5 output checks are probably not needed but since SquidMD5 is
an object build-time switched between several encryption library API
definitions it is better to be safe here as well.
helpers/basic_auth/NCSA/basic_ncsa_auth.cc