Parcourir la source

Merge branch 'pr/1379'

* pr/1379:
  check_smtp.c: modified SSL check for use with -e
Holger Weiss il y a 10 ans
Parent
commit
934fa89f46
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      NEWS
  2. 1 1
      plugins/check_smtp.c

+ 1 - 0
NEWS

@@ -18,6 +18,7 @@ This file documents the major additions and syntax changes between releases.
 	Let check_real terminate lines with CRLF when talking to the server, as
 	  mandated by 2326
 	Fix check_procs on HP-UX
+	check_smtp's -e/--expect option can now be combined with -S/--starttls
 
 	WARNINGS
 	The format of the performance data emitted by check_mrtgtraf has been

+ 1 - 1
plugins/check_smtp.c

@@ -231,7 +231,7 @@ main (int argc, char **argv)
 		  send(sd, SMTP_STARTTLS, strlen(SMTP_STARTTLS), 0);
 
 		  recvlines(buffer, MAX_INPUT_BUFFER); /* wait for it */
-		  if (!strstr (buffer, server_expect)) {
+		  if (!strstr (buffer, SMTP_EXPECT)) {
 		    printf (_("Server does not support STARTTLS\n"));
 		    smtp_quit();
 		    return STATE_UNKNOWN;