]> granicus.if.org Git - apache/commitdiff
style fix only
authorJeff Trawick <trawick@apache.org>
Sat, 3 Jul 2004 12:25:11 +0000 (12:25 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 3 Jul 2004 12:25:11 +0000 (12:25 +0000)
(previously committed from user-supplied patch)

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

modules/proxy/proxy_ftp.c

index d2a833a3c5b70784263e886b5b21fe564edabac3..5864938870e1a1323c74eb26d0e027200955babd 100644 (file)
@@ -810,7 +810,7 @@ int ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf,
         return HTTP_NOT_IMPLEMENTED;
 
     /* We break the URL into host, port, path-search */
-    if(r->parsed_uri.hostname==NULL){
+    if (r->parsed_uri.hostname == NULL) {
         if (APR_SUCCESS != apr_uri_parse(p, url, &uri)) {
             return ap_proxyerror(r, HTTP_BAD_REQUEST,
                 apr_psprintf(p, "URI cannot be parsed: %s", url));
@@ -818,12 +818,13 @@ int ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf,
         connectname = uri.hostname;
         connectport = uri.port;
         path = apr_pstrdup(p, uri.path);
-    } else {
+    }
+    else {
         connectname = r->parsed_uri.hostname;
         connectport = r->parsed_uri.port;
         path = apr_pstrdup(p, r->parsed_uri.path);
     }
-    if (connectport==0) {
+    if (connectport == 0) {
         connectport = apr_uri_port_of_scheme("ftp");
     }
     path = (path != NULL && path[0] != '\0') ? &path[1] : "";