git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba74fc
)
BUGFIX: forced-fail smtp option tls_sni would dereference NULL
tls_fix
author
Phil Pennock
<pdp@exim.org>
Wed, 6 Jun 2012 23:46:40 +0000
(19:46 -0400)
committer
Phil Pennock
<pdp@exim.org>
Wed, 6 Jun 2012 23:46:40 +0000
(19:46 -0400)
src/src/tls-openssl.c
patch
|
blob
|
history
diff --git
a/src/src/tls-openssl.c
b/src/src/tls-openssl.c
index 22c0730c39c1ed2de9f41d61f5e0c07e473050fe..17cc72133daf5e1afd9f2aed0678c59d37a52eb2 100644
(file)
--- 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
{