Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/openldap/dist/libraries/liblutil Fix memset usage.



details:   https://anonhg.NetBSD.org/src/rev/0215d19b638f
branches:  trunk
changeset: 766727:0215d19b638f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jul 01 02:01:21 2011 +0000

description:
Fix memset usage.

diffstat:

 external/bsd/openldap/dist/libraries/liblutil/md5.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4ba33c44fa1a -r 0215d19b638f external/bsd/openldap/dist/libraries/liblutil/md5.c
--- a/external/bsd/openldap/dist/libraries/liblutil/md5.c       Fri Jul 01 01:57:01 2011 +0000
+++ b/external/bsd/openldap/dist/libraries/liblutil/md5.c       Fri Jul 01 02:01:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md5.c,v 1.1.1.3 2010/12/12 15:22:09 adam Exp $ */
+/*     $NetBSD: md5.c,v 1.2 2011/07/01 02:01:21 joerg Exp $    */
 
 /* md5.c -- MD5 message-digest algorithm */
 /* OpenLDAP: pkg/ldap/libraries/liblutil/md5.c,v 1.19.2.5 2010/04/13 20:23:06 kurt Exp */
@@ -187,7 +187,7 @@
        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



Home | Main Index | Thread Index | Old Index