Update: bug is caused by a newline in the hdr_entry.value for the
Content-Length header field (i.e. the value contains the numerical
value with a surplus trailing newline). Around line 937 in
src/modules/proxy/proxy_ftp.c, this code propagates the trailing
newline to the "size" variable (from ftp_getrc_msg), which is later
copied to the header value field:
                        else if (i == 213) { /* Size command ok */
                                                        size = resp;

Quick & dirty fix:
Add:
if (size[strlen(size)-1]=='\n') size[strlen(size)-1]='\0';
(at the following line). 

Reply via email to