smtp: recognize if client initiated TLS

Ticket: 7469
pull/12445/head
Philippe Antoine 2 months ago committed by Victor Julien
parent b5094b00b6
commit 78715a5f3f

@ -1699,7 +1699,7 @@ static AppProto SMTPServerProbingParser(
return ALPROTO_UNKNOWN; return ALPROTO_UNKNOWN;
} }
AppProto r = ALPROTO_UNKNOWN; AppProto r = ALPROTO_UNKNOWN;
if (f->todstbytecnt > 4 && f->alproto_ts == ALPROTO_UNKNOWN) { if (f->todstbytecnt > 4 && (f->alproto_ts == ALPROTO_UNKNOWN || f->alproto_ts == ALPROTO_TLS)) {
// Only validates SMTP if client side is unknown // Only validates SMTP if client side is unknown
// despite having received bytes. // despite having received bytes.
r = ALPROTO_SMTP; r = ALPROTO_SMTP;

Loading…
Cancel
Save