summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-15 14:27:14 -0200
committerRenato Botelho <renato@netgate.com>2016-01-15 14:27:14 -0200
commit2cb37fa6c1a5746a55e09186c557ea298865da87 (patch)
tree1584935c6c90bd6e568e63e3141bb9061362039b
parent65cce9d728449da1c5243629b25ab3307acfff82 (diff)
downloadpfsense-2cb37fa6c1a5746a55e09186c557ea298865da87.zip
pfsense-2cb37fa6c1a5746a55e09186c557ea298865da87.tar.gz
Silence stream_socket_enable_crypto() warning when CN doesn't match. Fixes #5604
-rw-r--r--src/etc/inc/smtp.inc4
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
+?>
OpenPOWER on IntegriCloud