projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d2707e
)
engines/http: work-around crash in certain libssl versions
author
Jens Axboe
<axboe@kernel.dk>
Fri, 21 Sep 2018 15:17:38 +0000
(09:17 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 21 Sep 2018 15:17:38 +0000
(09:17 -0600)
Fixes: https://github.com/axboe/fio/issues/684
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/http.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/http.c
b/engines/http.c
index 93fcd0d8e44a5528a4e36879bbd75af9afe9904e..d81e4288ff7bfdec000781240cea3aafa687ca88 100644
(file)
--- 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));