apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/passwd apr_md5.c
Date Mon, 04 Jun 2001 18:38:33 GMT
jerenkrantz    01/06/04 11:38:32

  Modified:    passwd   apr_md5.c
  Log:
  I've managed to get three -1s off this (Jeff, Ryan, and myself).
  
  Revert the context null check.  My bad.
  
  Revision  Changes    Path
  1.14      +0 -12     apr/passwd/apr_md5.c
  
  Index: apr_md5.c
  ===================================================================
  RCS file: /home/cvs/apr/passwd/apr_md5.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- apr_md5.c	2001/06/04 18:11:09	1.13
  +++ apr_md5.c	2001/06/04 18:38:31	1.14
  @@ -188,9 +188,6 @@
    */
   APR_DECLARE(apr_status_t) apr_md5_init(apr_md5_ctx_t *context)
   {
  -    if (!context)
  -        return APR_EINVAL;
  -    
       context->count[0] = context->count[1] = 0;
       
       /* Load magic initialization constants. */
  @@ -217,9 +214,6 @@
       apr_status_t rv;
       int is_sb;
   
  -    if (!context)
  -        return APR_EINVAL;
  -    
       /* TODO: remove the single-byte-only restriction from this code
        */
       rv = apr_xlate_get_sb(xlate, &is_sb);
  @@ -247,9 +241,6 @@
       apr_size_t inbytes_left, outbytes_left;
   #endif
   
  -    if (!context)
  -        return APR_EINVAL;
  -    
       /* Compute number of bytes mod 64 */
       idx = (unsigned int)((context->count[0] >> 3) & 0x3F);
   
  @@ -329,9 +320,6 @@
       unsigned char bits[8];
       unsigned int idx, padLen;
   
  -    if (!context)
  -        return APR_EINVAL;
  -    
       /* Save number of bits */
       Encode(bits, context->count, 8);
   
  
  
  

Mime
View raw message