From ff0f3887897a4a5dd238e4a9e5f8227e1f25a50f Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 29 Nov 2014 14:33:18 +0100 Subject: bug 1288: EHLO returns 250 on success --- includes/general.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/general.php b/includes/general.php index ef87670..b3fd121 100644 --- a/includes/general.php +++ b/includes/general.php @@ -579,9 +579,9 @@ fputs($fp, "EHLO www.cacert.org\r\n"); do { $line = fgets($fp, 4096); - $has_starttls |= trim($line) == "220-STARTTLS"; + $has_starttls |= trim($line) == "250-STARTTLS"; } while(substr($line, 0, 4) == "250-"); - if(substr($line, 0, 3) != "220") { + if(substr($line, 0, 3) != "250") { fclose($fp); continue; } @@ -592,9 +592,9 @@ fputs($fp, "EHLO www.cacert.org\r\n"); do { $line = fgets($fp, 4096); - $has_starttls |= trim($line) == "220-STARTTLS"; + $has_starttls |= trim($line) == "250-STARTTLS"; } while(substr($line, 0, 4) == "250-"); - if(substr($line, 0, 3) != "220") { + if(substr($line, 0, 3) != "250") { fclose($fp); continue; } -- cgit v1.2.1