Переглянути джерело

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

Pointed out by Coverity

Closes #10906
Daniel Stenberg 1 рік тому
батько
коміт
772e28ff76
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      lib/http2.c

+ 1 - 1
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;
   }