summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/tls/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c
index 49f7b758c0..f89e2f1028 100644
--- a/source4/lib/tls/tls.c
+++ b/source4/lib/tls/tls.c
@@ -519,7 +519,7 @@ struct tls_context *tls_init_server(struct tls_params *params,
const char *plain_chars,
BOOL tls_enable)
{
- if (plain_chars == NULL) return NULL;
+ if (tls_enable && plain_chars == NULL) return NULL;
return (struct tls_context *)sock;
}