summaryrefslogtreecommitdiff
path: root/src/tool_formparse.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-09-22 01:08:29 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-09-22 01:08:29 +0100
commitee56fdb6910f6bf215eecede9e2e9bfc83cb5f29 (patch)
treebfdbf1f3f2f5cd9f051f6b8d0b2469c51b2660ef /src/tool_formparse.c
parentfa9482ab0907dfacd0fb619add2dbf41de2d8c9c (diff)
downloadcurl-ee56fdb6910f6bf215eecede9e2e9bfc83cb5f29.tar.gz
form/mime: field names are not allowed to contain zero-valued bytes.
Also suppress length argument of curl_mime_name() (names are always zero-terminated).
Diffstat (limited to 'src/tool_formparse.c')
-rw-r--r--src/tool_formparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_formparse.c b/src/tool_formparse.c
index 21cb2820b..4645a761e 100644
--- a/src/tool_formparse.c
+++ b/src/tool_formparse.c
@@ -733,7 +733,7 @@ int formparse(struct OperationConfig *config,
}
/* Set part name. */
- if(name && curl_mime_name(part, name, CURL_ZERO_TERMINATED)) {
+ if(name && curl_mime_name(part, name)) {
warnf(config->global, "curl_mime_name failed!\n");
Curl_safefree(contents);
return 31;