lookup_user() never returns zero, so kill the corresponding check for
zero return value.
use_rc4? "rc4" : "auth", u.name);
if ((ret = lookup_user(&u)) < 0)
goto err_out;
- if (!ret) { /* user not found */
- PARA_WARNING_LOG("auth request for unknown user %s\n", u.name);
- ret = -E_BAD_USER;
- goto err_out;
- }
ret = para_encrypt_challenge(u.rsa, challenge_nr, crypt_buf);
if (ret <= 0)
goto err_out;