Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcrypt we want to check against "*0" not "*\0"
details: https://anonhg.NetBSD.org/src/rev/6ea058b09551
branches: trunk
changeset: 772288:6ea058b09551
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 27 22:01:26 2011 +0000
description:
we want to check against "*0" not "*\0"
diffstat:
lib/libcrypt/bcrypt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3dcdde403f5a -r 6ea058b09551 lib/libcrypt/bcrypt.c
--- a/lib/libcrypt/bcrypt.c Tue Dec 27 21:47:04 2011 +0000
+++ b/lib/libcrypt/bcrypt.c Tue Dec 27 22:01:26 2011 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index