Module Name:    src
Committed By:   joerg
Date:           Fri Jul  1 02:01:21 UTC 2011

Modified Files:
        src/external/bsd/openldap/dist/libraries/liblutil: md5.c

Log Message:
Fix memset usage.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
    src/external/bsd/openldap/dist/libraries/liblutil/md5.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/openldap/dist/libraries/liblutil/md5.c
diff -u src/external/bsd/openldap/dist/libraries/liblutil/md5.c:1.1.1.3 src/external/bsd/openldap/dist/libraries/liblutil/md5.c:1.2
--- src/external/bsd/openldap/dist/libraries/liblutil/md5.c:1.1.1.3	Sun Dec 12 15:22:09 2010
+++ src/external/bsd/openldap/dist/libraries/liblutil/md5.c	Fri Jul  1 02:01:21 2011
@@ -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

Reply via email to