]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: copy CURLOPT_AWS_SIGV4 value on handle duplication
authorPatrick Monnerat <patrick@monnerat.net>
Tue, 25 Apr 2023 10:22:55 +0000 (12:22 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 25 Apr 2023 18:59:12 +0000 (14:59 -0400)
Prior to this change STRING_AWS_SIGV4 (CURLOPT_AWS_SIGV4) was wrongly
marked as binary data that could not be duplicated.

Without this fix, this option's value is not copied upon calling
curl_easy_duphandle().

Closes https://github.com/curl/curl/pull/11021

lib/urldata.h

index 777bc36f96650b3497fcef0bc57d21002d7b7b4d..9aea4427806ad0e43ffa5edf987ab4cf42c95f23 100644 (file)
@@ -1562,6 +1562,7 @@ enum dupstring {
   STRING_DNS_LOCAL_IP4,
   STRING_DNS_LOCAL_IP6,
   STRING_SSL_EC_CURVES,
+  STRING_AWS_SIGV4, /* Parameters for V4 signature */
 
   /* -- end of null-terminated strings -- */
 
@@ -1571,8 +1572,6 @@ enum dupstring {
 
   STRING_COPYPOSTFIELDS,  /* if POST, set the fields' values here */
 
-  STRING_AWS_SIGV4, /* Parameters for V4 signature */
-
   STRING_LAST /* not used, just an end-of-list marker */
 };