aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/http2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 4b461dd01..c8e1964a4 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -155,7 +155,9 @@ CURLcode Curl_http2_request(Curl_send_buffer *req,
*/
/* this returns number of bytes it wrote */
- binlen = nghttp2_pack_settings_payload(binsettings, settings,
+ binlen = nghttp2_pack_settings_payload(binsettings,
+ sizeof(binsettings),
+ settings,
sizeof(settings)/sizeof(settings[0]));
if(!binlen) {
failf(conn->data, "nghttp2 unexpectedly failed on pack_settings_payload");