mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
http2: remove check for !data after it was already dereferenced
Pointed out by Coverity Closes #10906
This commit is contained in:
parent
887acb48e4
commit
772e28ff76
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user