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:
fa7acb3
)
client: protect againt losing ah by lws_client_connect_2
author
Andy Green
<andy@warmcat.com>
Tue, 15 Nov 2016 09:01:19 +0000
(17:01 +0800)
committer
Andy Green
<andy@warmcat.com>
Tue, 15 Nov 2016 09:01:19 +0000
(17:01 +0800)
lib/client-handshake.c
patch
|
blob
|
history
diff --git
a/lib/client-handshake.c
b/lib/client-handshake.c
index
01a74d7
..
f78f4f1
100644
(file)
--- a/
lib/client-handshake.c
+++ b/
lib/client-handshake.c
@@
-19,6
+19,11
@@
lws_client_connect_2(struct lws *wsi)
lwsl_client("%s\n", __func__);
+ if (!wsi->u.hdr.ah) {
+ lwsl_err("ah was NULL at cc2\n");
+ goto oom4;
+ }
+
/* proxy? */
if (context->http_proxy_port) {