1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

coverity 83673 deference after NULL check

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-11-30 12:45:39 +08:00
parent 47afcddccf
commit f14ea7a906

View file

@ -470,7 +470,7 @@ upgrade_ws:
lwsl_info("checking %s\n", protocol_name);
n = 0;
while (context->protocols[n].callback) {
while (wsi->protocol && context->protocols[n].callback) {
if (!wsi->protocol->name) {
n++;
continue;