summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/mime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/mime.c')
-rw-r--r--libs/libcurl/src/mime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/libcurl/src/mime.c b/libs/libcurl/src/mime.c
index 90849e7508..19ac72c49f 100644
--- a/libs/libcurl/src/mime.c
+++ b/libs/libcurl/src/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;