http2: fix the array copy to nghttp2_nv

Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44517
Follow-up to 9f985a11e7
Closes #8414
This commit is contained in:
Daniel Stenberg 2022-02-09 11:58:58 +01:00
parent 77a9be6c5e
commit 2a1951519e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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);
}