]> git.ipfire.org Git - thirdparty/suricata.git/commit
htp: don't assume HTPCallbackRequestLine is the first callback 849/head
authorVictor Julien <victor@inliniac.net>
Tue, 25 Feb 2014 19:22:55 +0000 (20:22 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 25 Feb 2014 19:22:55 +0000 (20:22 +0100)
commit0416a8428d6ba79c0a9893ccce809a24b6243be5
tree6ebdc6c2cfd183db17f45ae0eb1cc7872d14a80f
parent42227e8713d9d5cb72da6d4f2bcf5e17c0a00323
htp: don't assume HTPCallbackRequestLine is the first callback

By assuming that HTPCallbackRequestLine would always be run first,
an memory leak was introduced. It would not check if user data already
existed in the tx, causing it to overwrite the user data pointer is
it already existed.

Bug #1092.
src/app-layer-htp.c