mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
Fix non-openssl build
This commit is contained in:
1 parent
1104688b02
commit
a66663f0f6
1 file changed
+3
-2
+3
-2
@@ -5101,8 +5101,8 @@ void mg_copy_listeners(struct mg_server *s, struct mg_server *to) {
|
|||||||
(tmp = (struct ns_connection *) NS_MALLOC(sizeof(*tmp))) != NULL) {
|
(tmp = (struct ns_connection *) NS_MALLOC(sizeof(*tmp))) != NULL) {
|
||||||
memcpy(tmp, c, sizeof(*tmp));
|
memcpy(tmp, c, sizeof(*tmp));
|
||||||
|
|
||||||
#ifdef NS_ENABLE_SSL
|
#if defined(NS_ENABLE_SSL) && defined(HEADER_SSL_H)
|
||||||
/* See https://github.com/cesanta/mongoose/issues/441 */
|
/* OpenSSL only. See https://github.com/cesanta/mongoose/issues/441 */
|
||||||
if (tmp->ssl_ctx != NULL) {
|
if (tmp->ssl_ctx != NULL) {
|
||||||
tmp->ssl_ctx->references++;
|
tmp->ssl_ctx->references++;
|
||||||
}
|
}
|
||||||
@@ -5166,6 +5166,7 @@ const char *mg_set_option(struct mg_server *server, const char *name,
|
|||||||
char buf[500] = "";
|
char buf[500] = "";
|
||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
struct vec vec;
|
struct vec vec;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ports can be specified as 0, meaning that OS has to choose any
|
* Ports can be specified as 0, meaning that OS has to choose any
|
||||||
* free port that is available. In order to pass chosen port number to
|
* free port that is available. In order to pass chosen port number to
|
||||||
|
|||||||
Reference in new issue
Block a user