]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: use nghttp3_version()
authorDaniel Stenberg <daniel@haxx.se>
Sun, 25 Aug 2019 16:09:37 +0000 (18:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Aug 2019 21:18:17 +0000 (23:18 +0200)
lib/vquic/ngtcp2.c

index 6071c5906c63f8a56ff3222c3199efe53c145b52..5fd65429ffb61ad85bccc8f0ffd94199e68b8453 100644 (file)
@@ -1155,8 +1155,9 @@ CURLcode Curl_quic_connect(struct connectdata *conn,
 int Curl_quic_ver(char *p, size_t len)
 {
   ngtcp2_info *ng2 = ngtcp2_version(0);
+  nghttp3_info *ht3 = nghttp3_version(0);
   return msnprintf(p, len, " ngtcp2/%s nghttp3/%s",
-                   ng2->version_str, NGHTTP3_VERSION);
+                   ng2->version_str, ht3->version_str);
 }
 
 static int ng_getsock(struct connectdata *conn, curl_socket_t *socks)