mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
fix(protocol-smtp): fixed chomp on undefined variable (#5377)
Refs: CTOR-1197
This commit is contained in:
parent
bba20e5f12
commit
92473a4b02
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user