http2: remove check for !data after it was already dereferenced

Pointed out by Coverity

Closes #10906
This commit is contained in:
Daniel Stenberg 2023-04-07 19:32:03 +02:00
parent 887acb48e4
commit 772e28ff76
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -222,7 +222,7 @@ static CURLcode http2_data_setup(struct Curl_cfilter *cf,
struct stream_ctx *stream = H2_STREAM_CTX(data);
(void)cf;
if(!data || !data->req.p.http) {
if(!data->req.p.http) {
failf(data, "initialization failure, transfer not http initialized");
return CURLE_FAILED_INIT;
}