Skip to content

Commit

Permalink
fix(protocol-smtp): fixed chomp on undefined variable (#5377)
Browse files Browse the repository at this point in the history
Refs: CTOR-1197
  • Loading branch information
omercier authored Jan 6, 2025
1 parent bba20e5 commit 92473a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/protocols/smtp/lib/smtp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ sub connect {
$self->{output}->exit();
}
if ($smtp_handle == -1) {
chomp $stdout;
chomp $stdout if (defined($stdout));
$self->{output}->output_add(
severity => $connection_exit,
short_msg => 'Unable to connect to SMTP: ' . (defined($stdout) ? $stdout : $error_msg)
Expand Down

0 comments on commit 92473a4

Please sign in to comment.