Module Name:    src
Committed By:   nia
Date:           Wed Oct 20 15:35:42 UTC 2021

Modified Files:
        src/lib/libcrypt: crypt-argon2.c

Log Message:
crypt(3): return 0 -> return NULL for function returning char *


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libcrypt/crypt-argon2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcrypt/crypt-argon2.c
diff -u src/lib/libcrypt/crypt-argon2.c:1.11 src/lib/libcrypt/crypt-argon2.c:1.12
--- src/lib/libcrypt/crypt-argon2.c:1.11	Wed Oct 20 13:03:29 2021
+++ src/lib/libcrypt/crypt-argon2.c	Wed Oct 20 15:35:42 2021
@@ -398,7 +398,7 @@ __crypt_argon2(const char *pw, const cha
 
 	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 @@ __crypt_argon2(const char *pw, const cha
 	if (rc != ARGON2_OK) {
 		fprintf(stderr, "argon2: failed: %s\n",
 		    argon2_error_message(rc));
-		return 0;
+		return NULL;
 	}
 
 	memcpy(rbuf, encodebuf, sizeof(encodebuf));

Reply via email to