PR 40733 [Ulf Harnhammar]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@574100
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) mod_proxy_ftp: Don't segfault on bad line in FTP listing
+ PR 40733 [Ulf Harnhammar <metaur telia.com>]
+
*) mod_proxy_ajp: Differentiate within AJP between GET and HEAD
requests. PR 43060 [Jim Jagielski]
}
filename = strrchr(ctx->buffer, ' ');
+ if (filename == NULL) {
+ /* Line is broken. Ignore it. */
+ ap_log_error(APLOG_MARK, APLOG_WARNING, 0, r->server,
+ "proxy_ftp: could not parse line %s", ctx->buffer);
+ /* erase buffer for next time around */
+ ctx->buffer[0] = 0;
+ continue; /* while state is BODY */
+ }
*(filename++) = '\0';
/* handle filenames with spaces in 'em */