summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authortedu <>2014-02-17 09:00:20 +0000
committertedu <>2014-02-17 09:00:20 +0000
commit81eff1c793cf524aea49d2d1b5b9e63f81876725 (patch)
tree8d0920fb4229e054b5b9a85d4aa2d710dfb3cc13 /src/lib/libc/crypt
parent7de623d702efe388f877216d35d1f14a131cf460 (diff)
downloadopenbsd-81eff1c793cf524aea49d2d1b5b9e63f81876725.tar.gz
openbsd-81eff1c793cf524aea49d2d1b5b9e63f81876725.tar.bz2
openbsd-81eff1c793cf524aea49d2d1b5b9e63f81876725.zip
remove redundant test
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r--src/lib/libc/crypt/bcrypt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/crypt/bcrypt.c b/src/lib/libc/crypt/bcrypt.c
index 1d7352e3f8..7e283c43f1 100644
--- a/src/lib/libc/crypt/bcrypt.c
+++ b/src/lib/libc/crypt/bcrypt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bcrypt.c,v 1.27 2014/02/17 08:58:50 tedu Exp $ */ 1/* $OpenBSD: bcrypt.c,v 1.28 2014/02/17 09:00:20 tedu Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -231,8 +231,7 @@ bcrypt(const char *key, const char *salt)
231 key_len = strlen(key); 231 key_len = strlen(key);
232 if (key_len > 72) 232 if (key_len > 72)
233 key_len = 72; 233 key_len = 72;
234 if (minor >= 'a') 234 key_len++; /* include the NUL */
235 key_len++; /* include the NUL */
236 } 235 }
237 236
238 /* Setting up S-Boxes and Subkeys */ 237 /* Setting up S-Boxes and Subkeys */