Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26925)
int res = 0;
int real_server = do_txt && 0; /* remove "&& 0" for using real server */
- snprintf(path, sizeof(path), "/%d%s", suggested_status,
- do_get > 1 ? "/will-be-redirected" : RPATH);
+ BIO_snprintf(path, sizeof(path), "/%d%s", suggested_status,
+ do_get > 1 ? "/will-be-redirected" : RPATH);
if (do_txt) {
content_type = "text/plain";
req = BIO_new(BIO_s_mem());