tls: null terminate openssl chiphers
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I5d4e68730a75337a2e532e72f366b62d6973235e
This commit is contained in:

committed by
Florin Coras

parent
564005b094
commit
13f34ba4ab
@@ -1152,8 +1152,8 @@ tls_openssl_set_ciphers (char *ciphers)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
vec_validate (om->ciphers, strlen (ciphers) - 1);
|
vec_validate (om->ciphers, strlen (ciphers));
|
||||||
for (i = 0; i < vec_len (om->ciphers); i++)
|
for (i = 0; i < vec_len (om->ciphers) - 1; i++)
|
||||||
{
|
{
|
||||||
om->ciphers[i] = toupper (ciphers[i]);
|
om->ciphers[i] = toupper (ciphers[i]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user