diff options
author | 2002-07-16 21:20:00 +0000 | |
---|---|---|
committer | 2002-07-16 21:20:00 +0000 | |
commit | 9b28da8672f302fd552be2fcf85ccb0fdb7391b3 (patch) | |
tree | ffa2439a129e987157d18291dd0ea46ba1c8fec6 | |
parent | correct lseek arguments; from Moritz Jodeit <moritz@jodeit.org> via PR/2822. (diff) | |
download | wireguard-openbsd-9b28da8672f302fd552be2fcf85ccb0fdb7391b3.tar.xz wireguard-openbsd-9b28da8672f302fd552be2fcf85ccb0fdb7391b3.zip |
correct memset arguments; from Moritz Jodeit <moritz@jodeit.org> via PR/2822.
-rw-r--r-- | lib/libcrypto/engine/hw_4758_cca.c | 4 | ||||
-rw-r--r-- | lib/libssl/src/crypto/engine/hw_4758_cca.c | 4 | ||||
-rw-r--r-- | sys/arch/amiga/stand/boot/aout2bb/aout2bb.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcrypto/engine/hw_4758_cca.c b/lib/libcrypto/engine/hw_4758_cca.c index 77d3d2ffdfd..0ca2f920dc3 100644 --- a/lib/libcrypto/engine/hw_4758_cca.c +++ b/lib/libcrypto/engine/hw_4758_cca.c @@ -698,7 +698,7 @@ static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); } @@ -821,7 +821,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); } diff --git a/lib/libssl/src/crypto/engine/hw_4758_cca.c b/lib/libssl/src/crypto/engine/hw_4758_cca.c index 77d3d2ffdfd..0ca2f920dc3 100644 --- a/lib/libssl/src/crypto/engine/hw_4758_cca.c +++ b/lib/libssl/src/crypto/engine/hw_4758_cca.c @@ -698,7 +698,7 @@ static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); } @@ -821,7 +821,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, if (type == NID_sha1 || type == NID_md5) { - memset(hashBuffer, keyLength+1, 0); + memset(hashBuffer, 0, keyLength+1); OPENSSL_free(hashBuffer); } diff --git a/sys/arch/amiga/stand/boot/aout2bb/aout2bb.c b/sys/arch/amiga/stand/boot/aout2bb/aout2bb.c index 84be027ae85..439e61f9daa 100644 --- a/sys/arch/amiga/stand/boot/aout2bb/aout2bb.c +++ b/sys/arch/amiga/stand/boot/aout2bb/aout2bb.c @@ -1,5 +1,5 @@ /* - * $OpenBSD: aout2bb.c,v 1.4 2002/06/11 05:18:21 jsyn Exp $ + * $OpenBSD: aout2bb.c,v 1.5 2002/07/16 21:21:00 fgsch Exp $ * $NetBSD: aout2bb.c,v 1.2 1996/12/31 22:39:58 veego Exp $ * * Copyright (c) 1996 Ignatios Souvatzis @@ -166,7 +166,7 @@ main(argc, argv) if (tsz+dsz+bsz > BBSIZE) errx(1, "%s: resulting image too big", argv[0]); - memset(buffer, sizeof(buffer), 0); + memset(buffer, 0, sizeof(buffer)); memcpy(buffer, image + N_TXTOFF(*eh), tsz+dsz); /* |