From: Jeff Trawick Date: Wed, 19 May 2004 16:15:53 +0000 (+0000) Subject: apr_pstrcat() needs NULL at end of parameter list to know X-Git-Tag: pre_ajp_proxy~250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b16ac459e9f46ccc9b5237c6d481cf802e858eb;p=apache apr_pstrcat() needs NULL at end of parameter list to know when to stop (mississi^#@75UiSIGSEGV) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103699 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_ftp.c b/modules/proxy/proxy_ftp.c index 23483c1b19..a054ea84c2 100644 --- a/modules/proxy/proxy_ftp.c +++ b/modules/proxy/proxy_ftp.c @@ -206,7 +206,7 @@ int ap_proxy_ftp_canon(request_rec *r, char *url) sport[0] = '\0'; if (ap_strchr_c(host, ':')) { /* if literal IPv6 address */ - host = apr_pstrcat(p, "[", host, "]"); + host = apr_pstrcat(p, "[", host, "]", NULL); } r->filename = apr_pstrcat(p, "proxy:ftp://", (user != NULL) ? user : "", (password != NULL) ? ":" : "",