Module Name:    src
Committed By:   christos
Date:           Tue Dec 27 22:01:26 UTC 2011

Modified Files:
        src/lib/libcrypt: bcrypt.c

Log Message:
we want to check against "*0" not "*\0"


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libcrypt/bcrypt.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/bcrypt.c
diff -u src/lib/libcrypt/bcrypt.c:1.12 src/lib/libcrypt/bcrypt.c:1.13
--- src/lib/libcrypt/bcrypt.c:1.12	Tue Dec 27 14:36:10 2011
+++ src/lib/libcrypt/bcrypt.c	Tue Dec 27 17:01:26 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bcrypt.c,v 1.12 2011/12/27 19:36:10 christos Exp $	*/
+/*	$NetBSD: bcrypt.c,v 1.13 2011/12/27 22:01:26 christos Exp $	*/
 /*	$OpenBSD: bcrypt.c,v 1.16 2002/02/19 19:39:36 millert Exp $	*/
 
 /*
@@ -46,7 +46,7 @@
  *
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: bcrypt.c,v 1.12 2011/12/27 19:36:10 christos Exp $");
+__RCSID("$NetBSD: bcrypt.c,v 1.13 2011/12/27 22:01:26 christos Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -315,7 +315,7 @@ __bcrypt(key, salt)
 	return encrypted;
 out:
 	/* How do I handle errors ? Return "*0" or "*1" */
-	return __UNCONST(salt[0] == '*' && salt[1] == '\0' ? "*1" : "*0");
+	return __UNCONST(salt[0] == '*' && salt[1] == '0' ? "*1" : "*0");
 }
 
 static void

Reply via email to