summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-04-04 13:59:32 -0700
committerFlorin Coras <florin.coras@gmail.com>2022-04-04 21:24:45 +0000
commit13f34ba4ab18155ac55f15c1b19f59bef9f97d99 (patch)
tree625e037afad43c021349e7c03a78d21fb3065533 /src/plugins
parent564005b094c627aaa130753eb43d95cb18c5aba5 (diff)
tls: null terminate openssl chiphers
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I5d4e68730a75337a2e532e72f366b62d6973235e
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c
index 0b76425d60d..a1cf3e7e3c4 100644
--- a/src/plugins/tlsopenssl/tls_openssl.c
+++ b/src/plugins/tlsopenssl/tls_openssl.c
@@ -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]);
}