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:
ce2e74e
)
NULL protocol: make sure vhost same protocol linklist gets correct protocol index
author
Andy Green
<andy@warmcat.com>
Wed, 31 May 2017 01:45:28 +0000
(09:45 +0800)
committer
Andy Green
<andy@warmcat.com>
Wed, 31 May 2017 01:45:28 +0000
(09:45 +0800)
lib/server.c
patch
|
blob
|
history
diff --git
a/lib/server.c
b/lib/server.c
index
ae01d05
..
ee61c60
100644
(file)
--- a/
lib/server.c
+++ b/
lib/server.c
@@
-1447,7
+1447,7
@@
upgrade_ws:
*/
lwsl_info("defaulting to prot handler %d\n",
wsi->vhost->default_protocol_index);
- n =
0
;
+ n =
wsi->vhost->default_protocol_index
;
wsi->protocol = &wsi->vhost->protocols[
(int)wsi->vhost->default_protocol_index];
}