summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2019-05-19 22:06:26 +0200
committerDaniel Gustafsson <daniel@yesql.se>2019-05-19 22:06:26 +0200
commit9a87fe704e3b9c5f54ac728f35622f03b555cb21 (patch)
treeb53496a1580348d16b0f4d6284da60a1ff26c3ab
parent7ca7f82ba7c936cc01651e28b2ad92400ad4f7cc (diff)
downloadcurl-9a87fe704e3b9c5f54ac728f35622f03b555cb21.tar.gz
version: make ssl_version buffer match for multi_ssl
When running a multi TLS backend build the version string needs more buffer space. Make the internal ssl_buffer stack buffer match the one in Curl_multissl_version() to allow for the longer string. For single TLS backend builds there is no use in extended to buffer. This is a fallout from #3863 which fixes up the multi_ssl string generation to avoid a buffer overflow when the buffer is too small. Closes #3875 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
-rw-r--r--lib/version.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c
index 87ebe0bc7..14b0531d3 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -394,8 +394,12 @@ curl_version_info_data *curl_version_info(CURLversion stamp)
static char ssh_buffer[80];
#endif
#ifdef USE_SSL
+#ifdef CURL_WITH_MULTI_SSL
+ static char ssl_buffer[200];
+#else
static char ssl_buffer[80];
#endif
+#endif
#ifdef HAVE_BROTLI
static char brotli_buffer[80];
#endif