httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From orlikow...@apache.org
Subject cvs commit: httpd-proxy/module-2.0 proxy_ftp.c
Date Thu, 28 Jun 2001 20:40:52 GMT
orlikowski    01/06/28 13:40:52

  Modified:    module-2.0 proxy_ftp.c
  Log:
  Use the variable we've been using for return codes.
  
  Revision  Changes    Path
  1.67      +6 -6      httpd-proxy/module-2.0/proxy_ftp.c
  
  Index: proxy_ftp.c
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_ftp.c,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- proxy_ftp.c	2001/06/28 20:29:45	1.66
  +++ proxy_ftp.c	2001/06/28 20:40:51	1.67
  @@ -1595,9 +1595,9 @@
   	apr_socket_close(remote_sock);
   	ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
   		     "proxy: FTP: Closing Data connection.");
  -	i = ftp_getrc_msg(origin, cbb, buffer, sizeof(buffer));
  +	rc = ftp_getrc_msg(origin, cbb, buffer, sizeof(buffer));
   	ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
  -		     "proxy: FTP: %d %s", i, buffer);
  +		     "proxy: FTP: %d %s", rc, buffer);
   	apr_brigade_cleanup(bb);
   	ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
   		     "proxy: FTP: end body send");
  @@ -1620,9 +1620,9 @@
   	/*   500 Syntax error, command unrecognized. */
   	/*   501 Syntax error in parameters or arguments. */
   	/*   502 Command not implemented. */
  -	i = ftp_getrc_msg(origin, cbb, buffer, sizeof(buffer));
  +	rc = ftp_getrc_msg(origin, cbb, buffer, sizeof(buffer));
   	ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
  -		     "proxy: FTP: %d %s", i, buffer);
  +		     "proxy: FTP: %d %s", rc, buffer);
       }
   
   
  @@ -1647,9 +1647,9 @@
       /* responses: 221, 500 */
       /* 221 Service closing control connection. */
       /* 500 Syntax error, command unrecognized. */
  -    i = ftp_getrc_msg(origin, cbb, buffer, sizeof(buffer));
  +    rc = ftp_getrc_msg(origin, cbb, buffer, sizeof(buffer));
       ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
  -                 "proxy: FTP: %d %s", i, buffer);
  +                 "proxy: FTP: %d %s", rc, buffer);
       apr_socket_close(sock);
       apr_brigade_destroy(bb);
       return OK;
  
  
  

Mime
View raw message