Skip to content

Commit

Permalink
smtp: recognize if client initiated TLS
Browse files Browse the repository at this point in the history
Ticket: 7469
  • Loading branch information
catenacyber committed Jan 16, 2025
1 parent 1909525 commit 389eb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-layer-smtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ static AppProto SMTPServerProbingParser(
return 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
// despite having received bytes.
r = ALPROTO_SMTP;
Expand Down

0 comments on commit 389eb49

Please sign in to comment.