diff options
Diffstat (limited to 'usr.bin/ssh/bufec.c')
-rw-r--r-- | usr.bin/ssh/bufec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/bufec.c b/usr.bin/ssh/bufec.c index a3825cf6e4f..f326b4e2fcd 100644 --- a/usr.bin/ssh/bufec.c +++ b/usr.bin/ssh/bufec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bufec.c,v 1.2 2013/05/17 00:13:13 djm Exp $ */ +/* $OpenBSD: bufec.c,v 1.3 2014/01/31 16:39:19 tedu Exp $ */ /* * Copyright (c) 2010 Damien Miller <djm@mindrot.org> * @@ -72,7 +72,7 @@ buffer_put_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, ret = 0; out: if (buf != NULL) { - bzero(buf, len); + explicit_bzero(buf, len); free(buf); } BN_CTX_free(bnctx); @@ -125,7 +125,7 @@ buffer_get_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, ret = 0; out: BN_CTX_free(bnctx); - bzero(buf, len); + explicit_bzero(buf, len); free(buf); return ret; } |