]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #5081: smtp: handle split CRLF in multiline response parsing
authorBohdan Hryniv -X (bhryniv - SOFTSERVE INC at Cisco) <bhryniv@cisco.com>
Tue, 13 Jan 2026 22:48:41 +0000 (22:48 +0000)
committerChris Sherwin (chsherwi) <chsherwi@cisco.com>
Tue, 13 Jan 2026 22:48:41 +0000 (22:48 +0000)
Merge in SNORT/snort3 from ~BHRYNIV/snort3:smtp_split_crlf to master

Squashed commit of the following:

commit e5e8bbfebc399179f7ececb283c72239cd9bff97
Author: Bohdan Hryniv <bhryniv@cisco>
Date:   Wed Jan 7 05:32:27 2026 -0500

    smtp: handle split CRLF in multiline response parsing

src/network_inspectors/appid/detector_plugins/detector_smtp.cc

index e554eeebf77be8c2a51779fde342e539025f7154..fd354c4e8a22135e187e3a27c2562a7d979540c6 100644 (file)
@@ -711,7 +711,7 @@ static inline int smtp_validate_reply(const uint8_t* data, uint16_t* offset, uin
         {
             (*offset)++;
             if (*offset >= size)
-                return -1;
+                return 0;  
             if (data[*offset] != 0x0A)
                 return -1;
         }