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:
09490ae
)
coverity 160165 dead code
author
Andy Green
<andy@warmcat.com>
Fri, 22 Apr 2016 23:46:37 +0000
(07:46 +0800)
committer
Andy Green
<andy@warmcat.com>
Sat, 23 Apr 2016 00:16:17 +0000
(08:16 +0800)
Yes... extension selection is not wired up yet
Signed-off-by: Andy Green <andy@warmcat.com>
lib/context.c
patch
|
blob
|
history
diff --git
a/lib/context.c
b/lib/context.c
index
d95bbe5
..
26f0268
100644
(file)
--- a/
lib/context.c
+++ b/
lib/context.c
@@
-274,8
+274,10
@@
lws_create_vhost(struct lws_context *context,
memcpy((struct lws_extension *)vh->extensions, info->extensions,
sizeof(struct lws_extension) * m);
+ plugin = context->plugin_list;
while (plugin) {
- memcpy((struct lws_extension *)&vh->extensions[m], plugin->caps.extensions,
+ memcpy((struct lws_extension *)&vh->extensions[m],
+ plugin->caps.extensions,
sizeof(struct lws_extension) *
plugin->caps.count_extensions);
m += plugin->caps.count_extensions;