Skip to content

Commit

Permalink
http_aws_sigv4: skip the op if the query pair is zero bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Sep 8, 2023
1 parent 4600bd3 commit 16bdc09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/http_aws_sigv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ static CURLcode canon_query(struct Curl_easy *data,
for(i = 0; !result && (i < entry); i++, ap++) {
size_t len;
const char *q = ap->p;
if(!ap->len)
continue;
for(len = ap->len; len && !result; q++, len--) {
if(ISALNUM(*q))
result = Curl_dyn_addn(dq, q, 1);
Expand Down

0 comments on commit 16bdc09

Please sign in to comment.