From e8aaa77654d7b9d995b53837903d19b5364c9ba4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 21 Sep 2018 09:17:38 -0600 Subject: [PATCH] engines/http: work-around crash in certain libssl versions Fixes: https://github.com/axboe/fio/issues/684 Signed-off-by: Jens Axboe --- engines/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/http.c b/engines/http.c index 93fcd0d8..d81e4288 100644 --- a/engines/http.c +++ b/engines/http.c @@ -273,6 +273,8 @@ static void _hmac(unsigned char *md, void *key, int key_len, char *data) { ctx = HMAC_CTX_new(); #else ctx = &_ctx; + /* work-around crash in certain versions of libssl */ + HMAC_CTX_init(ctx); #endif HMAC_Init_ex(ctx, key, key_len, EVP_sha256(), NULL); HMAC_Update(ctx, (unsigned char*)data, strlen(data)); -- 2.25.1