]> git.ipfire.org Git - thirdparty/squid.git/commit
Add assert()s to validate state in Basic Auth
authoramosjeffries <>
Fri, 3 Aug 2007 08:11:17 +0000 (08:11 +0000)
committeramosjeffries <>
Fri, 3 Aug 2007 08:11:17 +0000 (08:11 +0000)
commit2948b229af567fdfd6744e38113f341aecd7ff7e
treeeeb7b0c56322ef49580c145c085eaca6c8db0bf5
parent27da7c2146a6e470319df445e8823e4873d1fe40
Add assert()s to validate state in Basic Auth

Coverity checker picked up a number of cases where casting might (rarely)
cause a NULL pointer and a dereference occured afterwards.
This patch adds several assert statements to cause squid to abort at the
source of these errors rather than segfault later.
No code logic has been changed in any way.
src/auth/basic/auth_basic.cc