]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp: fix null deref with config option body md5
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 30 Aug 2023 19:35:08 +0000 (21:35 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 13 Sep 2023 08:09:22 +0000 (10:09 +0200)
commitc6afee64d510daa9f383b160f3abd194ee74a15b
tree79b2417ce856f83fc5d0532170c0e125183248bc
parent00e00254eae205bad5d4cfbf6c9e69f944faaf69
smtp: fix null deref with config option body md5

Ticket: #6279

If we have the smtp body beginning without headers, we need to
create the md5 context and right away and supply data to it.
Otherwise, on the next line being processed, md5_ctx will be
NULL but body_begin will have been reset to 0
src/util-decode-mime.c