r7773: fixed the tls code for the non-GNUTLS case
authorAndrew Tridgell <tridge@samba.org>
Mon, 20 Jun 2005 04:18:23 +0000 (04:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:34 +0000 (13:18 -0500)
source/lib/tls/tls.c

index 49f7b758c0dbc811e147b23f89ada29a6c9c0955..f89e2f1028b79ae970a31747c54a07b34de997fa 100644 (file)
@@ -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;
 }