]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/files: increment local_file_id even if buffer is NULL 13292/head
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 21 May 2025 13:34:26 +0000 (15:34 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 21 May 2025 17:42:11 +0000 (19:42 +0200)
commitb4095bf683a7fcbcedc7ef015ed9e44cff17a9ed
tree1cb55fa2771f05d5dbb927643e3566369129b0b9
parentfd1071a7958ad4c4ad596e159ac57ab5c3f9cfc2
detect/files: increment local_file_id even if buffer is NULL

Ticket: 7579

Otherwise, we will keep on calling again and again GetDataCallback
with the same local_file_id, and we will always get a NULL
buffer even if the next local_file_id would return a non-NULL buffer.
src/detect-file-data.c
src/detect-filemagic.c
src/detect-filename.c