From: tomeeo Date: Fri, 23 Jul 2021 21:04:59 +0000 (-0400) Subject: [mod_http_cache] Fix the query string not included for HTTP PUT requests to s3 X-Git-Tag: v1.10.7^2~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd1e0c160555e50774395fa7350dd851c3146b05;p=thirdparty%2Ffreeswitch.git [mod_http_cache] Fix the query string not included for HTTP PUT requests to s3 --- diff --git a/src/mod/applications/mod_http_cache/aws.c b/src/mod/applications/mod_http_cache/aws.c index cc02b4e5b5..264756eda7 100644 --- a/src/mod/applications/mod_http_cache/aws.c +++ b/src/mod/applications/mod_http_cache/aws.c @@ -47,7 +47,7 @@ */ static char *hmac256(char* buffer, unsigned int buffer_length, const char* key, unsigned int key_length, const char* message) { - if (zstr(key) || zstr(message) || buffer_length < SHA256_DIGEST_LENGTH) { + if (!key || zstr(message) || buffer_length < SHA256_DIGEST_LENGTH) { return NULL; }