httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy ajp_link.c
Date Fri, 17 Sep 2004 12:39:19 GMT
mturk       2004/09/17 05:39:19

  Modified:    modules/proxy ajp_link.c
  Log:
  Do not check if the input sock param is NULL. It's already checked before
  the function is called.
  
  Revision  Changes    Path
  1.4       +2 -11     httpd-2.0/modules/proxy/ajp_link.c
  
  Index: ajp_link.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/ajp_link.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ajp_link.c	11 Sep 2004 09:57:12 -0000	1.3
  +++ ajp_link.c	17 Sep 2004 12:39:19 -0000	1.4
  @@ -53,19 +53,10 @@
   static apr_status_t ilink_read(apr_socket_t *sock, char * buf,
                                  apr_size_t len)
   {
  -    apr_size_t   length;
  +    apr_size_t   length = len;
  +    apr_size_t   rdlen  = 0;
       apr_status_t status;
  -    apr_size_t   rdlen;
   
  -    if (sock == NULL) {
  -        ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
  -                      "ajp_ilink_readN(): NULL socket provided");
  -        return AJP_EINVAL;
  -    }
  -
  -    rdlen  = 0;
  -    length = len;
  -    
       while (rdlen < len) {
   
           status = apr_socket_recv(sock, buf + rdlen, &length);
  
  
  

Mime
View raw message