httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r613690 - /httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
Date Sun, 20 Jan 2008 22:18:27 GMT
Author: wrowe
Date: Sun Jan 20 14:18:25 2008
New Revision: 613690

URL: http://svn.apache.org/viewvc?rev=613690&view=rev
Log:
Correct test for an unknown user before propogating r-> user/auth fields

Modified:
    httpd/mod_ftp/trunk/modules/ftp/ftp_util.c

Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_util.c?rev=613690&r1=613689&r2=613690&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_util.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_util.c Sun Jan 20 14:18:25 2008
@@ -417,7 +417,7 @@
 void ftp_set_authorization(request_rec *r)
 {
     ftp_connection *fc = ftp_get_module_config(r->connection->conn_config);
-    if (r->user == ftp_unknown_username)
+    if (fc->user == ftp_unknown_username)
         return;
     r->hostname = apr_pstrdup(r->pool, fc->host);
     r->user = apr_pstrdup(r->pool, fc->user);



Mime
View raw message