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:
461a906
)
client account for retries
author
Andy Green
<andy@warmcat.com>
Fri, 22 Apr 2016 04:40:44 +0000
(12:40 +0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 22 Apr 2016 04:40:44 +0000
(12:40 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/client-handshake.c
patch
|
blob
|
history
diff --git
a/lib/client-handshake.c
b/lib/client-handshake.c
index 629ad060e52b257f240541b0ceb3db9010f29583..cdc49d572eabeb5a58da30f4ee0bc372f64ae6f1 100644
(file)
--- a/
lib/client-handshake.c
+++ b/
lib/client-handshake.c
@@
-305,6
+305,9
@@
oom4:
/* we're closing, losing some rx is OK */
wsi->u.hdr.ah->rxpos = wsi->u.hdr.ah->rxlen;
lws_header_table_detach(wsi);
+ /* take care that we might be inserted in fds already */
+ if (wsi->position_in_fds_table != -1)
+ goto failed;
lws_free(wsi);
return NULL;