diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-18 11:51:17 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-18 11:51:17 -0200 |
commit | e7ed310fb4d82bb2da42bd672e17183f95b00ac8 (patch) | |
tree | 898900787dc9a6987675b30ea36d257856b4bddf /src/etc/inc | |
parent | 855f62a58a22622933d24dae0602bdcd4a3b6e3e (diff) | |
download | pfsense-e7ed310fb4d82bb2da42bd672e17183f95b00ac8.zip pfsense-e7ed310fb4d82bb2da42bd672e17183f95b00ac8.tar.gz |
Respect smtp debug setting
Diffstat (limited to 'src/etc/inc')
-rw-r--r-- | src/etc/inc/smtp.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/etc/inc/smtp.inc b/src/etc/inc/smtp.inc index 54aa8cf..2cae8dd 100644 --- a/src/etc/inc/smtp.inc +++ b/src/etc/inc/smtp.inc @@ -1265,12 +1265,14 @@ class smtp_class elseif($success = ($this->PutLine('STARTTLS') && $this->VerifyResultLines('220',$responses)>0)) { - $this->OutputDebug('Starting TLS cryptograpic protocol'); + if($this->debug) + $this->OutputDebug('Starting TLS cryptograpic protocol'); if(!($success = @stream_socket_enable_crypto($this->connection, 1, STREAM_CRYPTO_METHOD_TLS_CLIENT))) $this->error = 'could not start TLS connection encryption protocol'; else { - $this->OutputDebug('TLS started'); + if($this->debug) + $this->OutputDebug('TLS started'); $success = $this->StartSMTP($localhost); } } |