mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-28 11:20:53 +00:00
Changed: Check for string length
This commit is contained in:
parent
f410468b50
commit
3292ea5dfa
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@ char * rz_crypt(register const char *key, register const char *setting, char *bu
|
||||||
return buff;
|
return buff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (setting[0] == '$' && setting[1] == '6') {
|
if (strlen(setting) >= 2 && setting[0] == '$' && setting[1] == '6') {
|
||||||
return __crypt_sha512(key, setting, buf);
|
return __crypt_sha512(key, setting, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue