From 007588a08c20dd3d9c09fd87265686c19d643e2f Mon Sep 17 00:00:00 2001 From: Martin Gaida Date: Mon, 21 Mar 2016 13:39:53 +0100 Subject: [PATCH] fixed small bug --- src/civetweb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/civetweb.c b/src/civetweb.c index 9495b34b..bfe20dc6 100644 --- a/src/civetweb.c +++ b/src/civetweb.c @@ -10568,10 +10568,10 @@ sslize(struct mg_connection *conn, SSL_CTX *s, int (*func)(SSL *)) char *pem; if ((pem = conn->ctx->config[SSL_CERTIFICATE]) == NULL && conn->ctx->callbacks.init_ssl == NULL) { - return 1; + return 0; } if (ssl_use_pem_file(conn->ctx, pem) == 0) { - return 1; + return 0; } } conn->ssl = SSL_new(s);