aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jan Wagner <waja@cyconet.org> 2019-01-20 15:04:11 +0100
committerGravatar Jan Wagner <waja@cyconet.org> 2019-01-20 15:07:58 +0100
commiteb8ca01be9ca63b13f77a5814b97cb5810220b65 (patch)
treede4b21fa93415440ac031880febeacd197d04bd9
parent52373954332f517c4c52a8237dd20f5e91377128 (diff)
parent8520c643dd35bbeebbf36c7145d3f8c12dfaf70b (diff)
downloadmonitoring-plugins-eb8ca01be9ca63b13f77a5814b97cb5810220b65.tar.gz
Merge pull request #1574 from waja/check_smtp_custom_command_ssl
Simply initializes n before it is used
-rw-r--r--plugins/check_smtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 0fcf4c68..d37c57c8 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -293,6 +293,7 @@ main (int argc, char **argv)
printf("%s", buffer);
}
+ n = 0;
while (n < ncommands) {
xasprintf (&cmd_str, "%s%s", commands[n], "\r\n");
my_send(cmd_str, strlen(cmd_str));