diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-03-01 16:16:19 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-07 12:10:11 +0100 |
commit | e364546fb3371ac27f59f897e4c55acce7fc824e (patch) | |
tree | b78ab8146ff20031fe094d176516dc06aff9cb47 /lib/vquic | |
parent | 310dc709ffa0f66ea3184048aee941815aaf5a03 (diff) | |
download | curl-e364546fb3371ac27f59f897e4c55acce7fc824e.tar.gz |
version: make curl_version* thread-safe without using global context
Closes #5010
Diffstat (limited to 'lib/vquic')
-rw-r--r-- | lib/vquic/ngtcp2.c | 2 | ||||
-rw-r--r-- | lib/vquic/quiche.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 0788404c0..2f6ee8bdf 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -641,7 +641,7 @@ 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", + return msnprintf(p, len, "ngtcp2/%s nghttp3/%s", ng2->version_str, ht3->version_str); } diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c index d09ba7038..c40e5e937 100644 --- a/lib/vquic/quiche.c +++ b/lib/vquic/quiche.c @@ -532,7 +532,7 @@ static ssize_t h3_stream_send(struct connectdata *conn, */ int Curl_quic_ver(char *p, size_t len) { - return msnprintf(p, len, " quiche/%s", quiche_version()); + return msnprintf(p, len, "quiche/%s", quiche_version()); } /* Index where :authority header field will appear in request header |