From: Andre Date: Thu, 11 Jan 2007 22:15:31 +0000 (+0100) Subject: command.c: simplify handle_connect() X-Git-Tag: v0.2.15~101 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=0a2aa419ef9fcdb667ebcbe1a425802578aa153d;p=paraslash.git command.c: simplify handle_connect() lookup_user() never returns zero, so kill the corresponding check for zero return value. --- diff --git a/command.c b/command.c index ebc0a5fe..474e1bba 100644 --- a/command.c +++ b/command.c @@ -1065,11 +1065,6 @@ int handle_connect(int fd, struct sockaddr_in *addr) 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;