1
0
Fork 0
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:
Andy Green 2018-04-04 10:39:31 +08:00
parent 43f9a8de80
commit 3c9924bf73

View file

@ -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;