From 80fdfd87f89ddf1640b05c561cae74c6fac51472 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 28 Aug 2024 16:16:35 +0200 Subject: requires libxcrypt >= 4.4 --- xpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xpass.c') diff --git a/xpass.c b/xpass.c index 9592118..ad21234 100644 --- a/xpass.c +++ b/xpass.c @@ -124,7 +124,7 @@ static bool php_xpass_verify(const zend_string *password, const zend_string *has static bool php_xpass_needs_rehash(const zend_string *hash, zend_array *options) { - if (crypt_checksalt(ZSTR_VAL(hash))) { + if (crypt_checksalt(ZSTR_VAL(hash)) != CRYPT_SALT_OK) { return 1; } return 0; -- cgit