]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: handle following cmd if LF was found in long line
authorShivani Bhardwaj <shivani@oisf.net>
Sat, 6 May 2023 11:46:30 +0000 (17:16 +0530)
committerVictor Julien <vjulien@oisf.net>
Tue, 13 Jun 2023 11:47:42 +0000 (13:47 +0200)
commit046a192c1f7ee84d44ac75d6ba9c053bd16717c5
tree9f26ab092494b87681a0bea8fd079b8f880cbe66
parentd83a34397b1df6be1a81a2fb4a37d51c4c5fd595
smtp: handle following cmd if LF was found in long line

If a long line had LF post the limit, it should be considered complete
and not wait for the next line to complete it. However, currently, any
following lines were skipped which could sometimes also be important
commands for the entire transaction.

Fix this by setting a flag in case we're truncating a long line but
after having found the LF character.

Bug 5989
src/app-layer-smtp.c