Skip to content
Snippets Groups Projects
Commit 3c9924bf authored by Andy Green's avatar Andy Green
Browse files

Coverity 189191: client: cope with missing :status on h2 client

parent 43f9a8de
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment