[exim-cvs] BUGFIX: forced-fail smtp option tls_sni would der…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] BUGFIX: forced-fail smtp option tls_sni would dereference NULL
Gitweb: http://git.exim.org/exim.git/commitdiff/2c9a0e86055f1e86ca5cdde421f5f8c9a48b0194
Commit:     2c9a0e86055f1e86ca5cdde421f5f8c9a48b0194
Parent:     bba74fc65f77dc6678b3d33eef0acf43efe8f653
Author:     Phil Pennock <pdp@???>
AuthorDate: Wed Jun 6 19:46:40 2012 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Wed Jun 6 19:46:40 2012 -0400


    BUGFIX: forced-fail smtp option tls_sni would dereference NULL
---
 src/src/tls-openssl.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c
index 22c0730..17cc721 100644
--- a/src/src/tls-openssl.c
+++ b/src/src/tls-openssl.c
@@ -1289,7 +1289,11 @@ if (sni)
   {
   if (!expand_check(sni, US"tls_sni", &tls_sni))
     return FAIL;
-  if (!Ustrlen(tls_sni))
+  if (tls_sni == NULL)
+    {
+    DEBUG(D_tls) debug_printf("Setting TLS SNI forced to fail, not sending\n");
+    }
+  else if (!Ustrlen(tls_sni))
     tls_sni = NULL;
   else
     {