Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcrypt crypt(3): return 0 -> return NULL for function ...
details: https://anonhg.NetBSD.org/src/rev/093ddceb8a00
branches: trunk
changeset: 1024363:093ddceb8a00
user: nia <nia%NetBSD.org@localhost>
date: Wed Oct 20 15:35:42 2021 +0000
description:
crypt(3): return 0 -> return NULL for function returning char *
diffstat:
lib/libcrypt/crypt-argon2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 18e649af9ed1 -r 093ddceb8a00 lib/libcrypt/crypt-argon2.c
--- a/lib/libcrypt/crypt-argon2.c Wed Oct 20 14:33:14 2021 +0000
+++ b/lib/libcrypt/crypt-argon2.c Wed Oct 20 15:35:42 2021 +0000
@@ -398,7 +398,7 @@
if (rc < 0) {
/* unable to parse input params */
- return 0;
+ return NULL;
}
rc = argon2_hash(ctx.t_cost, ctx.m_cost,
@@ -409,7 +409,7 @@
if (rc != ARGON2_OK) {
fprintf(stderr, "argon2: failed: %s\n",
argon2_error_message(rc));
- return 0;
+ return NULL;
}
memcpy(rbuf, encodebuf, sizeof(encodebuf));
Home |
Main Index |
Thread Index |
Old Index