projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7262e14
)
client: reject init_client_ssl more than once
author
Andy Green
<andy@warmcat.com>
Sat, 8 Jul 2017 08:01:34 +0000
(16:01 +0800)
committer
Andy Green
<andy@warmcat.com>
Sat, 8 Jul 2017 08:03:38 +0000
(16:03 +0800)
lib/ssl-client.c
patch
|
blob
|
history
diff --git
a/lib/ssl-client.c
b/lib/ssl-client.c
index
e60f10a
..
0c75738
100644
(file)
--- a/
lib/ssl-client.c
+++ b/
lib/ssl-client.c
@@
-459,6
+459,9
@@
int lws_context_init_client_ssl(struct lws_context_creation_info *info,
if (!lws_check_opt(info->options, LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT))
return 0;
+ if (vhost->ssl_client_ctx)
+ return 0;
+
if (info->provided_client_ssl_ctx) {
/* use the provided OpenSSL context if given one */
vhost->ssl_client_ctx = info->provided_client_ssl_ctx;