mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
Coverity 189191: client: cope with missing :status on h2 client
This commit is contained in:
parent
43f9a8de80
commit
3c9924bf73
1 changed files with 7 additions and 1 deletions
|
@ -767,8 +767,14 @@ lws_client_interpret_server_handshake(struct lws *wsi)
|
|||
lwsl_info("no URI\n");
|
||||
goto bail3;
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_STATUS);
|
||||
if (!p) {
|
||||
cce = "HS: :status missing";
|
||||
lwsl_info("no status\n");
|
||||
goto bail3;
|
||||
}
|
||||
}
|
||||
n = atoi(p);
|
||||
if (ah)
|
||||
ah->http_response = n;
|
||||
|
|
Loading…
Add table
Reference in a new issue