coverity 182069: coverity confused by use of bool as array index

This commit is contained in:
Andy Green 2017-07-28 14:20:42 +08:00
parent c6233ce403
commit 4a9c23e9ec

View file

@ -474,7 +474,7 @@ callback_generic_sessions(struct lws *wsi, enum lws_callback_reasons reason,
WSI_TOKEN_HOST) < 0) WSI_TOKEN_HOST) < 0)
return 1; return 1;
lws_snprintf(pss->onward, sizeof(pss->onward) - 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); cookie, args->p);
lwsl_notice("redirecting to ourselves with cookie refresh\n"); lwsl_notice("redirecting to ourselves with cookie refresh\n");
/* we need a redirect to ourselves, session cookie is expired */ /* we need a redirect to ourselves, session cookie is expired */