]> granicus.if.org Git - apache/commitdiff
apr_pstrcat() needs NULL at end of parameter list to know
authorJeff Trawick <trawick@apache.org>
Wed, 19 May 2004 16:15:53 +0000 (16:15 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 19 May 2004 16:15:53 +0000 (16:15 +0000)
when to stop (mississi^#@75UiSIGSEGV)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103699 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ftp.c

index 23483c1b198fe6c90ab00ef7f571b5ba1174e06f..a054ea84c2e98d475f3ac00e7b371a4b5c900b58 100644 (file)
@@ -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) ? ":" : "",