]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_http_cache] Fix the query string not included for HTTP PUT requests to s3
authortomeeo <tom.oristian@gmail.com>
Fri, 23 Jul 2021 21:04:59 +0000 (17:04 -0400)
committerGitHub <noreply@github.com>
Fri, 23 Jul 2021 21:04:59 +0000 (00:04 +0300)
src/mod/applications/mod_http_cache/aws.c

index cc02b4e5b5aabb4a0a83187193ed8a27b674bdae..264756eda7dbe9f6d516e86b3669db98cd4719e8 100644 (file)
@@ -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;
        }