summaryrefslogtreecommitdiffstats
path: root/xpass.c
diff options
context:
space:
mode:
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;