]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/md5.c
Merge remote branch 'origin/mdb.master'
[openldap] / libraries / liblutil / md5.c
index 99162541d287c9fb75dcf14b067107c7df87e165..b36bfbb7d64f0bca93d57e61fa5b920644f57e1a 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2006 The OpenLDAP Foundation.
+ * Copyright 1998-2012 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -185,7 +185,7 @@ lutil_MD5Final( unsigned char *digest, struct lutil_MD5Context *ctx )
        putu32(ctx->buf[1], digest + 4);
        putu32(ctx->buf[2], digest + 8);
        putu32(ctx->buf[3], digest + 12);
-       memset(ctx, '\0', sizeof(ctx)); /* In case it's sensitive */
+       memset(ctx, '\0', sizeof(*ctx));        /* In case it's sensitive */
 }
 
 #ifndef ASM_MD5