]> granicus.if.org Git - curl/commitdiff
http2: adjust to new nghttp2_pack_settings_payload proto
authorDaniel Stenberg <daniel@haxx.se>
Mon, 9 Sep 2013 13:18:09 +0000 (15:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Sep 2013 13:18:09 +0000 (15:18 +0200)
This function was modified in nghttp2 git commit a1c3f89c72e51

lib/http2.c

index 4b461dd01dbce410c94b44b6ecdd7d90fcfbc892..c8e1964a4f75effc621d36072e29b5091e96a1f3 100644 (file)
@@ -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");