]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: fix the array copy to nghttp2_nv
authorDaniel Stenberg <daniel@haxx.se>
Wed, 9 Feb 2022 10:58:58 +0000 (11:58 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 9 Feb 2022 11:18:50 +0000 (12:18 +0100)
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44517
Follow-up to 9f985a11e794
Closes #8414

lib/http2.c

index be7c24b4651d3b5339fd1aced4b14971fdda35e7..26ab2aa81dba7beb1f8cd8f7cde89af6acad6e40 100644 (file)
@@ -1922,6 +1922,7 @@ static ssize_t http2_send(struct Curl_easy *data, int sockindex,
       nva[i].namelen = hreq->header[i].namelen;
       nva[i].value = (unsigned char *)hreq->header[i].value;
       nva[i].valuelen = hreq->header[i].valuelen;
+      nva[i].flags = NGHTTP2_NV_FLAG_NONE;
     }
     Curl_pseudo_free(hreq);
   }