Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcrypt perform the check for all salts > 2.
details: https://anonhg.NetBSD.org/src/rev/9ecc15bd2f5a
branches: trunk
changeset: 772266:9ecc15bd2f5a
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 27 01:20:45 2011 +0000
description:
perform the check for all salts > 2.
diffstat:
lib/libcrypt/crypt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c57d8780bbcd -r 9ecc15bd2f5a lib/libcrypt/crypt.c
--- a/lib/libcrypt/crypt.c Tue Dec 27 00:49:16 2011 +0000
+++ b/lib/libcrypt/crypt.c Tue Dec 27 01:20:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crypt.c,v 1.30 2011/12/26 22:58:45 christos Exp $ */
+/* $NetBSD: crypt.c,v 1.31 2011/12/27 01:20:45 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)crypt.c 8.1.1.1 (Berkeley) 8/18/93";
#else
-__RCSID("$NetBSD: crypt.c,v 1.30 2011/12/26 22:58:45 christos Exp $");
+__RCSID("$NetBSD: crypt.c,v 1.31 2011/12/27 01:20:45 christos Exp $");
#endif
#endif /* not lint */
@@ -578,7 +578,7 @@
salt = 0;
for (i = salt_size; --i >= 0; ) {
int value = ascii_to_bin(setting[i]);
- if (salt_size == 4 && itoa64[value] != setting[i])
+ if (salt_size > 2 && itoa64[value] != setting[i])
return NULL;
encp[i] = setting[i];
salt = (salt << 6) | value;
Home |
Main Index |
Thread Index |
Old Index