[openssl] master update
shane.lontis at oracle.com
shane.lontis at oracle.com
Fri Mar 19 07:09:58 UTC 2021
The branch master has been updated
via ebdb5cccde44d3d1a17b4284b2b6e0ed39a71faf (commit)
from 2154a7a754f7347892ef060d5ab4072b8a86d440 (commit)
- Log -----------------------------------------------------------------
commit ebdb5cccde44d3d1a17b4284b2b6e0ed39a71faf
Author: Shane Lontis <shane.lontis at oracle.com>
Date: Thu Mar 18 15:41:11 2021 +1000
Fix windows build compiler issue.
Another case of snprintf() being used.
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14600)
-----------------------------------------------------------------------
Summary of changes:
crypto/http/http_lib.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c
index ebb2af9b2e..3bf642a4f4 100644
--- a/crypto/http/http_lib.c
+++ b/crypto/http/http_lib.c
@@ -9,6 +9,7 @@
#include <openssl/http.h>
#include <openssl/httperr.h>
+#include <openssl/bio.h> /* for BIO_snprintf() */
#include <openssl/err.h>
#include <string.h>
#include "internal/cryptlib.h" /* for ossl_assert() */
@@ -164,7 +165,7 @@ int OSSL_parse_url(const char *url, char **pscheme, char **puser, char **phost,
if ((*ppath = OPENSSL_malloc(buflen)) == NULL)
goto err;
- snprintf(*ppath, buflen, "/%s", path);
+ BIO_snprintf(*ppath, buflen, "/%s", path);
}
return 1;
More information about the openssl-commits
mailing list