1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

fixed small bug

This commit is contained in:
Martin Gaida
2016-03-21 13:39:53 +01:00
parent 21fc4332c2
commit 007588a08c

View File

@@ -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);