From: tedu Date: Tue, 6 May 2014 15:59:24 +0000 (+0000) Subject: fix stupid commit X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2d36debaa7e2b2d2c0482d120c4688986c9c6316;p=openbsd fix stupid commit --- diff --git a/lib/libc/crypt/bcrypt.c b/lib/libc/crypt/bcrypt.c index 3bb61a5ebc1..87d47b816e9 100644 --- a/lib/libc/crypt/bcrypt.c +++ b/lib/libc/crypt/bcrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt.c,v 1.42 2014/05/06 15:38:49 tedu Exp $ */ +/* $OpenBSD: bcrypt.c,v 1.43 2014/05/06 15:59:24 tedu Exp $ */ /* * Copyright (c) 2014 Ted Unangst @@ -187,10 +187,10 @@ bcrypt_hashpass(const char *key, const char *salt, char *encrypted, encode_base64(encrypted + i + 3, csalt, BCRYPT_MAXSALT); encode_base64(encrypted + strlen(encrypted), ciphertext, 4 * BCRYPT_BLOCKS - 1); - explicit_bzero(&state, 0, sizeof(state)); - explicit_bzero(ciphertext, 0, sizeof(ciphertext)); - explicit_bzero(csalt, 0, sizeof(csalt)); - explicit_bzero(cdata, 0, sizeof(cdata)); + explicit_bzero(&state, sizeof(state)); + explicit_bzero(ciphertext, sizeof(ciphertext)); + explicit_bzero(csalt, sizeof(csalt)); + explicit_bzero(cdata, sizeof(cdata)); return 0; }