summaryrefslogtreecommitdiffstats
path: root/xpass.c
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-08-28 16:16:35 +0200
committerRemi Collet <remi@php.net>2024-08-28 16:16:35 +0200
commit80fdfd87f89ddf1640b05c561cae74c6fac51472 (patch)
treed4da2b687b1d1a5bb318619fd0925434ef4751a6 /xpass.c
parent284a17d46f865e819f2520da9b536c51ca24d54a (diff)
requires libxcrypt >= 4.4
Diffstat (limited to 'xpass.c')
-rw-r--r--xpass.c2
1 files changed, 1 insertions, 1 deletions
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;