diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-15 14:27:14 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-15 14:27:14 -0200 |
commit | 2cb37fa6c1a5746a55e09186c557ea298865da87 (patch) | |
tree | 1584935c6c90bd6e568e63e3141bb9061362039b /src/etc/inc | |
parent | 65cce9d728449da1c5243629b25ab3307acfff82 (diff) | |
download | pfsense-2cb37fa6c1a5746a55e09186c557ea298865da87.zip pfsense-2cb37fa6c1a5746a55e09186c557ea298865da87.tar.gz |
Silence stream_socket_enable_crypto() warning when CN doesn't match. Fixes #5604
Diffstat (limited to 'src/etc/inc')
-rw-r--r-- | src/etc/inc/smtp.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/smtp.inc b/src/etc/inc/smtp.inc index 78340da..54aa8cf 100644 --- a/src/etc/inc/smtp.inc +++ b/src/etc/inc/smtp.inc @@ -1266,7 +1266,7 @@ class smtp_class && $this->VerifyResultLines('220',$responses)>0)) { $this->OutputDebug('Starting TLS cryptograpic protocol'); - if(!($success = stream_socket_enable_crypto($this->connection, 1, STREAM_CRYPTO_METHOD_TLS_CLIENT))) + if(!($success = @stream_socket_enable_crypto($this->connection, 1, STREAM_CRYPTO_METHOD_TLS_CLIENT))) $this->error = 'could not start TLS connection encryption protocol'; else { @@ -1887,4 +1887,4 @@ class smtp_class */ -?>
\ No newline at end of file +?> |