Module Name: src Committed By: christos Date: Fri May 10 16:39:25 UTC 2013
Modified Files: src/crypto/external/bsd/libsaslc/dist/src: dict.c Log Message: use explicit_bzero instead of memset to zero memory To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/crypto/external/bsd/libsaslc/dist/src/dict.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/libsaslc/dist/src/dict.c diff -u src/crypto/external/bsd/libsaslc/dist/src/dict.c:1.6 src/crypto/external/bsd/libsaslc/dist/src/dict.c:1.7 --- src/crypto/external/bsd/libsaslc/dist/src/dict.c:1.6 Tue Feb 15 21:14:22 2011 +++ src/crypto/external/bsd/libsaslc/dist/src/dict.c Fri May 10 12:39:25 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: dict.c,v 1.6 2011/02/16 02:14:22 christos Exp $ */ +/* $NetBSD: dict.c,v 1.7 2013/05/10 16:39:25 christos Exp $ */ /* Copyright (c) 2010 The NetBSD Foundation, Inc. * All rights reserved. @@ -35,7 +35,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: dict.c,v 1.6 2011/02/16 02:14:22 christos Exp $"); +__RCSID("$NetBSD: dict.c,v 1.7 2013/05/10 16:39:25 christos Exp $"); #include <sys/queue.h> @@ -136,7 +136,7 @@ saslc__dict_list_node_destroy(saslc__dic free(node->key); /* zero value, it may contain sensitive data */ - memset(node->value, 0, node->value_len); + __explicit_bzero(node->value, node->value_len); free(node->value); LIST_REMOVE(node, nodes); free(node);