]> git.ipfire.org Git - thirdparty/squid.git/commit
libntlmauth: Fix string field truncation
authorElmar Vonlanthen <Elmar.Vonlanthen@united-security-providers.ch>
Sun, 13 Oct 2013 13:33:55 +0000 (07:33 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 13 Oct 2013 13:33:55 +0000 (07:33 -0600)
commit06a5cb1fa80b62f154457fdd1c03e3bef7992c41
tree6bac6b357ed3c8ed520f90b6be152bd4a2e3b9ea
parent72ac8fe4a410c928abb0cb51e2a5cac70dbc7d09
libntlmauth: Fix string field truncation

Count of field bytes must begin at 0. Otherwise the decoder truncates
1 byte from the string due to lstring initial state values.

Also drop the lstring_zero(s) macro. It is only used in one place and
calling it 'zero' obscures that length is non-zero for invalid state.
lib/ntlmauth/ntlmauth.cc