aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tls_openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tls_openssl.c b/tls_openssl.c
index 61fa747..e29326e 100644
--- a/tls_openssl.c
+++ b/tls_openssl.c
@@ -45,7 +45,7 @@ static BIO *BIO_from_keystore(const char *key)
{
BIO *bio = NULL;
char value[KEYSTORE_MESSAGE_SIZE];
- int length = keystore_get(key, value);
+ int length = keystore_get(key, strlen(key), value);
if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL) {
BIO_write(bio, value, length);
}