diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-04-07 19:32:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-04-07 23:49:51 +0200 |
commit | 772e28ff7691f9676475a96531b2f5e5ba29688c (patch) | |
tree | 90973edc3d638445fadc6f68eb81d34ecfc441ab /lib/http2.c | |
parent | 887acb48e4953aa44e7e3be922a591549a25c9ba (diff) | |
download | curl-772e28ff7691f9676475a96531b2f5e5ba29688c.tar.gz |
http2: remove check for !data after it was already dereferenced
Pointed out by Coverity
Closes #10906
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index 17bab6065..3c9d0a014 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -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; } |