diff options
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r-- | ext/standard/php_crypt_r.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index 7af5636c08..921dffde52 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -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; |