Ensure a string is properly terminated in http_client.c
authorMatt Caswell <matt@openssl.org>
Thu, 25 Jun 2020 11:21:07 +0000 (12:21 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 3 Jul 2020 16:18:41 +0000 (17:18 +0100)
commit5a640713f34d4b9b6bf9520a46b0c8ee3334d8bf
tree0d43e083ea55a9a084c4f11aeb105a5112dc0835
parent64bb6276d17cc78c15e0bbea2cce899ba9b6778d
Ensure a string is properly terminated in http_client.c

In HTTP_new_bio(), if the host has a trailing '/' we took a copy of the
hostname but failed to terminate it properly.

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12275)
crypto/http/http_client.c