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:
parent
47afcddccf
commit
f14ea7a906
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue