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:
c6233ce
)
coverity 182069: coverity confused by use of bool as array index
author
Andy Green
<andy@warmcat.com>
Fri, 28 Jul 2017 06:20:42 +0000
(14:20 +0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 28 Jul 2017 06:25:25 +0000
(14:25 +0800)
plugins/generic-sessions/protocol_generic_sessions.c
patch
|
blob
|
history
diff --git
a/plugins/generic-sessions/protocol_generic_sessions.c
b/plugins/generic-sessions/protocol_generic_sessions.c
index 147d7c14f4322fd9489ca11d410b646fd193a2a4..521b5398bae62ba4bb84c2bfdfa3e8bd56a9cb71 100644
(file)
--- a/
plugins/generic-sessions/protocol_generic_sessions.c
+++ b/
plugins/generic-sessions/protocol_generic_sessions.c
@@
-474,7
+474,7
@@
callback_generic_sessions(struct lws *wsi, enum lws_callback_reasons reason,
WSI_TOKEN_HOST) < 0)
return 1;
lws_snprintf(pss->onward, sizeof(pss->onward) - 1,
- "%s%s%s", oprot[lws_is_ssl(wsi)],
+ "%s%s%s", oprot[
!!
lws_is_ssl(wsi)],
cookie, args->p);
lwsl_notice("redirecting to ourselves with cookie refresh\n");
/* we need a redirect to ourselves, session cookie is expired */