]> git.ipfire.org Git - thirdparty/squid.git/commit
libntlmauth: Fix string field truncation
authorElmar Vonlanthen <Elmar.Vonlanthen@united-security-providers.ch>
Tue, 8 Oct 2013 01:24:23 +0000 (19:24 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Oct 2013 01:24:23 +0000 (19:24 -0600)
commitec419c3a386b54c2624906e0f80cd76e112b6d1e
treec3ea30c081015440fd7d59658f39cb0d300ba9d6
parente5e7e8c6e9afc9a0b0a023c4dd4728198a1b97cc
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