]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/spool_in.c
BUGFIX: forced-fail smtp option tls_sni would dereference NULL
[user/henk/code/exim.git] / src / src / spool_in.c
index e0d7fcffe6a25ae5ca1626834f4d47b438b550c1..3c611a505590562efb1b787b2ad09d108ba45532 100644 (file)
@@ -2,7 +2,7 @@
 *     Exim - an Internet mail transport agent    *
 *************************************************/
 
-/* Copyright (c) University of Cambridge 1995 - 2009 */
+/* Copyright (c) University of Cambridge 1995 - 2012 */
 /* See the file NOTICE for conditions of use and distribution. */
 
 /* Functions for reading spool files. When compiling for a utility (eximon),
@@ -286,6 +286,7 @@ dkim_collect_input = FALSE;
 tls_certificate_verified = FALSE;
 tls_cipher = NULL;
 tls_peerdn = NULL;
+tls_sni = NULL;
 #endif
 
 #ifdef WITH_CONTENT_SCAN
@@ -549,6 +550,8 @@ for (;;)
       tls_cipher = string_copy(big_buffer + 12);
     else if (Ustrncmp(p, "ls_peerdn", 9) == 0)
       tls_peerdn = string_unprinting(string_copy(big_buffer + 12));
+    else if (Ustrncmp(p, "ls_sni", 6) == 0)
+      tls_sni = string_unprinting(string_copy(big_buffer + 9));
     break;
     #endif