Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/libsaslc/dist/src use explicit_bzero ins...



details:   https://anonhg.NetBSD.org/src/rev/dc1709236544
branches:  trunk
changeset: 786787:dc1709236544
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 10 16:39:25 2013 +0000

description:
use explicit_bzero instead of memset to zero memory

diffstat:

 crypto/external/bsd/libsaslc/dist/src/dict.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2eba60bef4b6 -r dc1709236544 crypto/external/bsd/libsaslc/dist/src/dict.c
--- a/crypto/external/bsd/libsaslc/dist/src/dict.c      Fri May 10 16:38:47 2013 +0000
+++ b/crypto/external/bsd/libsaslc/dist/src/dict.c      Fri May 10 16:39:25 2013 +0000
@@ -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 @@
 
        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);



Home | Main Index | Thread Index | Old Index