]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect-email.c: don't return NULL for empty buffer
authorAlice Akaki <akakialice@gmail.com>
Mon, 24 Mar 2025 21:08:31 +0000 (17:08 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Mar 2025 05:52:30 +0000 (06:52 +0100)
commit9c3c6cf4cc8fb28e920023bbeb263293c8f03566
tree87f284bc880f3b7075e82fa274e3a97bfff3c686
parent9e7d23d73f863f6235b25e945e699ffdf62af642
detect-email.c: don't return NULL for empty buffer

Just return NULL if tx->mime_state is NULL or if SCDetectMimeEmailGetData return 0

Fixes:
09db7c7 ("detect: add mime email.subject keyword")
90aab0d ("detect: add email.from")
src/detect-email.c