You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by je...@apache.org on 2001/06/04 20:41:19 UTC
cvs commit: apr-util/crypto apr_md4.c
jerenkrantz 01/06/04 11:41:19
Modified: crypto apr_md4.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.3 +0 -12 apr-util/crypto/apr_md4.c
Index: apr_md4.c
===================================================================
RCS file: /home/cvs/apr-util/crypto/apr_md4.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- apr_md4.c 2001/06/04 17:21:51 1.2
+++ apr_md4.c 2001/06/04 18:41:17 1.3
@@ -150,9 +150,6 @@
*/
APU_DECLARE(apr_status_t) apr_md4_init(apr_md4_ctx_t *context)
{
- if (!context)
- return APR_EINVAL;
-
context->count[0] = context->count[1] = 0;
/* Load magic initialization constants. */
@@ -179,9 +176,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);
@@ -209,9 +203,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);
@@ -292,9 +283,6 @@
unsigned char bits[8];
unsigned int idx, padLen;
- if (!context)
- return APR_EINVAL;
-
/* Save number of bits */
Encode(bits, context->count, 8);