From dac12a7a17482a4b9a2bcaa2b925528d420a9f5f Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 4 Jun 2013 15:54:33 +0000 Subject: oops, rounds is unsigned now --- lib/libutil/bcrypt_pbkdf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libutil/bcrypt_pbkdf.c b/lib/libutil/bcrypt_pbkdf.c index 732499be0c9..24b628cc3f4 100644 --- a/lib/libutil/bcrypt_pbkdf.c +++ b/lib/libutil/bcrypt_pbkdf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt_pbkdf.c,v 1.1 2013/06/03 21:07:02 tedu Exp $ */ +/* $OpenBSD: bcrypt_pbkdf.c,v 1.2 2013/06/04 15:54:32 tedu Exp $ */ /* * Copyright (c) 2013 Ted Unangst * @@ -107,8 +107,6 @@ bcrypt_pbkdf(const char *pass, size_t passlen, const uint8_t *salt, size_t saltl uint32_t count; /* nothing crazy */ - if (rounds < 1) - return -1; if (passlen == 0 || saltlen == 0 || keylen == 0 || keylen > sizeof(out) * sizeof(out)) return -1; -- cgit v1.2.3