summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_smtp.c8
3 files changed, 5 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 184d4ec..ee0ac0e 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ This file documents the major additions and syntax changes between releases.
31.4.7 ?? 31.4.7 ??
4 check_procs uses /usr/ucb/ps if available - fixes pst3 problems on Solaris 4 check_procs uses /usr/ucb/ps if available - fixes pst3 problems on Solaris
5 Fixed MKINSTALLDIRS problem in po/ 5 Fixed MKINSTALLDIRS problem in po/
6 Fixed broken HELO in check_smtp
6 Root plugins installed with world executable 7 Root plugins installed with world executable
7 ./configure now detects if possible to compile check_mysql 8 ./configure now detects if possible to compile check_mysql
8 check_sybase from contrib now maintained in NagiosExchange 9 check_sybase from contrib now maintained in NagiosExchange
diff --git a/THANKS.in b/THANKS.in
index 1022646..98b8679 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -210,3 +210,4 @@ Chris Grim
210Nobuhiro Ban 210Nobuhiro Ban
211Ville Mattila 211Ville Mattila
212Lars Stavholm 212Lars Stavholm
213Enrico Scholz
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index a7ba45a..6987e17 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -179,7 +179,7 @@ main (int argc, char **argv)
179 if (process_arguments (argc, argv) == ERROR) 179 if (process_arguments (argc, argv) == ERROR)
180 usage4 (_("Could not parse arguments")); 180 usage4 (_("Could not parse arguments"));
181 181
182 /* initialize the HELO command with the localhostname */ 182 /* If localhostname not set on command line, use gethostname to set */
183 if(! localhostname){ 183 if(! localhostname){
184 localhostname = malloc (HOST_MAX_BYTES); 184 localhostname = malloc (HOST_MAX_BYTES);
185 if(!localhostname){ 185 if(!localhostname){
@@ -190,13 +190,11 @@ main (int argc, char **argv)
190 printf(_("gethostname() failed!\n")); 190 printf(_("gethostname() failed!\n"));
191 return STATE_CRITICAL; 191 return STATE_CRITICAL;
192 } 192 }
193 } else {
194 helocmd = localhostname;
195 } 193 }
196 if(use_ehlo) 194 if(use_ehlo)
197 asprintf (&helocmd, "%s%s%s", SMTP_EHLO, helocmd, "\r\n"); 195 asprintf (&helocmd, "%s%s%s", SMTP_EHLO, localhostname, "\r\n");
198 else 196 else
199 asprintf (&helocmd, "%s%s%s", SMTP_HELO, helocmd, "\r\n"); 197 asprintf (&helocmd, "%s%s%s", SMTP_HELO, localhostname, "\r\n");
200 198
201 if (verbose) 199 if (verbose)
202 printf("HELOCMD: %s", helocmd); 200 printf("HELOCMD: %s", helocmd);