tls: null terminate openssl chiphers

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I5d4e68730a75337a2e532e72f366b62d6973235e
This commit is contained in:
Florin Coras
2022-04-04 13:59:32 -07:00
committed by Florin Coras
parent 564005b094
commit 13f34ba4ab

View File

@@ -1152,8 +1152,8 @@ tls_openssl_set_ciphers (char *ciphers)
return -1;
}
vec_validate (om->ciphers, strlen (ciphers) - 1);
for (i = 0; i < vec_len (om->ciphers); i++)
vec_validate (om->ciphers, strlen (ciphers));
for (i = 0; i < vec_len (om->ciphers) - 1; i++)
{
om->ciphers[i] = toupper (ciphers[i]);
}