summaryrefslogtreecommitdiffstats
path: root/lib/mime.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@lists.haxx.se>2023-10-11 05:34:19 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-12 19:28:57 (GMT)
commite6a6c1abc1e6b6e3ca9fa77947279509b55e2b01 (patch)
treef0d748647eebb0b8ba55e478ea35c8686dbd1485 /lib/mime.c
parent017637e40f954e791a895a04855d0411bda61c10 (diff)
downloadCMake-e6a6c1abc1e6b6e3ca9fa77947279509b55e2b01.zip
CMake-e6a6c1abc1e6b6e3ca9fa77947279509b55e2b01.tar.gz
CMake-e6a6c1abc1e6b6e3ca9fa77947279509b55e2b01.tar.bz2
curl 2023-10-11 (d755a5f7)
Code extracted from: https://github.com/curl/curl.git at commit d755a5f7c009dd63a61b2c745180d8ba937cbfeb (curl-8_4_0).
Diffstat (limited to 'lib/mime.c')
-rw-r--r--lib/mime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mime.c b/lib/mime.c
index 842b2da..3b27e59 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -1289,9 +1289,9 @@ curl_mime *curl_mime_init(struct Curl_easy *easy)
mime->lastpart = NULL;
memset(mime->boundary, '-', MIME_BOUNDARY_DASHES);
- if(Curl_rand_hex(easy,
- (unsigned char *) &mime->boundary[MIME_BOUNDARY_DASHES],
- MIME_RAND_BOUNDARY_CHARS + 1)) {
+ if(Curl_rand_alnum(easy,
+ (unsigned char *) &mime->boundary[MIME_BOUNDARY_DASHES],
+ MIME_RAND_BOUNDARY_CHARS + 1)) {
/* failed to get random separator, bail out */
free(mime);
return NULL;