Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/heimdal/dist/lib Fix memset usage.
details: https://anonhg.NetBSD.org/src/rev/361b9cb684d0
branches: trunk
changeset: 766729:361b9cb684d0
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Jul 01 02:10:19 2011 +0000
description:
Fix memset usage.
diffstat:
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c | 4 ++--
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 5a9f89c8a895 -r 361b9cb684d0 crypto/external/bsd/heimdal/dist/lib/hx509/cert.c
--- a/crypto/external/bsd/heimdal/dist/lib/hx509/cert.c Fri Jul 01 02:10:07 2011 +0000
+++ b/crypto/external/bsd/heimdal/dist/lib/hx509/cert.c Fri Jul 01 02:10:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cert.c,v 1.1.1.1 2011/04/13 18:15:10 elric Exp $ */
+/* $NetBSD: cert.c,v 1.2 2011/07/01 02:10:19 joerg Exp $ */
/*
* Copyright (c) 2004 - 2007 Kungliga Tekniska Högskolan
@@ -357,7 +357,7 @@
free(cert->friendlyname);
if (cert->basename)
hx509_name_free(&cert->basename);
- memset(cert, 0, sizeof(cert));
+ memset(cert, 0, sizeof(*cert));
free(cert);
}
diff -r 5a9f89c8a895 -r 361b9cb684d0 crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c
--- a/crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c Fri Jul 01 02:10:07 2011 +0000
+++ b/crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c Fri Jul 01 02:10:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crypto-des3.c,v 1.1.1.1 2011/04/13 18:15:32 elric Exp $ */
+/* $NetBSD: crypto-des3.c,v 1.2 2011/07/01 02:10:19 joerg Exp $ */
/*
* Copyright (c) 1997 - 2008 Kungliga Tekniska Högskolan
@@ -204,7 +204,7 @@
DES_cblock *k;
int i, j;
- memset(x, 0, sizeof(x));
+ memset(x, 0, 32);
for (i = 0; i < 3; ++i) {
unsigned char foo;
for (j = 0; j < 7; ++j) {
Home |
Main Index |
Thread Index |
Old Index