diff options
author | Remi Collet <remi@remirepo.net> | 2024-08-28 16:16:35 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-08-28 16:16:35 +0200 |
commit | 80fdfd87f89ddf1640b05c561cae74c6fac51472 (patch) | |
tree | d4da2b687b1d1a5bb318619fd0925434ef4751a6 /xpass.c | |
parent | 284a17d46f865e819f2520da9b536c51ca24d54a (diff) |
requires libxcrypt >= 4.4
Diffstat (limited to 'xpass.c')
-rw-r--r-- | xpass.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |