X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fhttp.c;h=a35c03327ec1f2751711ab73f64a5b42113e65e4;hp=93fcd0d8e44a5528a4e36879bbd75af9afe9904e;hb=2401022342f650ac7d845a14c7b9bf1cd87cead6;hpb=bd915a6b96d5dab1a30a83a4ddfcf15a0f74c92e diff --git a/engines/http.c b/engines/http.c index 93fcd0d8..a35c0332 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)); @@ -294,9 +296,11 @@ static int _curl_trace(CURL *handle, curl_infotype type, switch (type) { case CURLINFO_TEXT: - fprintf(stderr, "== Info: %s", data); + fprintf(stderr, "== Info: %s", data); + /* fall through */ default: case CURLINFO_SSL_DATA_OUT: + /* fall through */ case CURLINFO_SSL_DATA_IN: return 0;