Loading lib/formdata.c +5 −3 Original line number Diff line number Diff line Loading @@ -367,8 +367,8 @@ char *Curl_FormBoundary(void) return retstring; } /* Used from http.c */ void Curl_FormFree(struct FormData *form) /* Used from http.c, this cleans a built FormData linked list */ void Curl_formclean(struct FormData *form) { struct FormData *next; Loading Loading @@ -501,7 +501,9 @@ struct FormData *Curl_getFormData(struct HttpPost *post, fileread = strequal("-", file->contents)?stdin: /* binary read for win32 crap */ fopen(file->contents, "rb"); /*VMS??*/ fopen(file->contents, "rb"); /* ONLY ALLOWS FOR STREAM FILES ON VMS */ /*VMS?? Stream files are OK, as are FIXED & VAR files WITHOUT implied CC */ /*VMS?? For implied CC, every record needs to have a \n appended & 1 added to SIZE */ if(fileread) { while((nread = fread(buffer, 1, 1024, fileread))) { size += AddFormData(&form, Loading lib/formdata.h +1 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,6 @@ int Curl_FormReader(char *buffer, char *Curl_FormBoundary(void); void Curl_FormFree(struct FormData *); void Curl_formclean(struct FormData *); #endif lib/http.c +2 −2 Original line number Diff line number Diff line Loading @@ -364,7 +364,7 @@ CURLcode Curl_http_done(struct connectdata *conn) if(HTTPREQ_POST_FORM == data->httpreq) { *bytecount = http->readbytecount + http->writebytecount; Curl_FormFree(http->sendit); /* Now free that whole lot */ Curl_formclean(http->sendit); /* Now free that whole lot */ data->fread = http->storefread; /* restore */ data->in = http->in; /* restore */ Loading Loading @@ -731,7 +731,7 @@ CURLcode Curl_http(struct connectdata *conn) conn->firstsocket, &http->writebytecount); if(result) { Curl_FormFree(http->sendit); /* free that whole lot */ Curl_formclean(http->sendit); /* free that whole lot */ return result; } } Loading Loading
lib/formdata.c +5 −3 Original line number Diff line number Diff line Loading @@ -367,8 +367,8 @@ char *Curl_FormBoundary(void) return retstring; } /* Used from http.c */ void Curl_FormFree(struct FormData *form) /* Used from http.c, this cleans a built FormData linked list */ void Curl_formclean(struct FormData *form) { struct FormData *next; Loading Loading @@ -501,7 +501,9 @@ struct FormData *Curl_getFormData(struct HttpPost *post, fileread = strequal("-", file->contents)?stdin: /* binary read for win32 crap */ fopen(file->contents, "rb"); /*VMS??*/ fopen(file->contents, "rb"); /* ONLY ALLOWS FOR STREAM FILES ON VMS */ /*VMS?? Stream files are OK, as are FIXED & VAR files WITHOUT implied CC */ /*VMS?? For implied CC, every record needs to have a \n appended & 1 added to SIZE */ if(fileread) { while((nread = fread(buffer, 1, 1024, fileread))) { size += AddFormData(&form, Loading
lib/formdata.h +1 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,6 @@ int Curl_FormReader(char *buffer, char *Curl_FormBoundary(void); void Curl_FormFree(struct FormData *); void Curl_formclean(struct FormData *); #endif
lib/http.c +2 −2 Original line number Diff line number Diff line Loading @@ -364,7 +364,7 @@ CURLcode Curl_http_done(struct connectdata *conn) if(HTTPREQ_POST_FORM == data->httpreq) { *bytecount = http->readbytecount + http->writebytecount; Curl_FormFree(http->sendit); /* Now free that whole lot */ Curl_formclean(http->sendit); /* Now free that whole lot */ data->fread = http->storefread; /* restore */ data->in = http->in; /* restore */ Loading Loading @@ -731,7 +731,7 @@ CURLcode Curl_http(struct connectdata *conn) conn->firstsocket, &http->writebytecount); if(result) { Curl_FormFree(http->sendit); /* free that whole lot */ Curl_formclean(http->sendit); /* free that whole lot */ return result; } } Loading