diff options
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r-- | ext/standard/php_crypt_r.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index 7af5636c08..479b8c7965 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2018 The PHP Group | + | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -154,9 +154,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out) { } /* It stops at the first '$', max 8 chars */ - for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++) { - continue; - } + for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++); /* get the length of the true salt */ sl = (DWORD)(ep - sp); @@ -335,8 +333,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out) sp += MD5_MAGIC_LEN; /* It stops at the first '$', max 8 chars */ - for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++) - continue; + for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++); /* get the length of the true salt */ sl = ep - sp; |