X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=command.c;h=f096edcc37493bab7dbe8e4cab461da71dee50ce;hb=1fe76952bf4244b93808da5e8fc45e92d8b37c58;hp=0be61e809471902c7b4e8a2243d0735d32bec240;hpb=6e1de6469d0595740fd8350f435b0562d23d87fa;p=paraslash.git diff --git a/command.c b/command.c index 0be61e80..f096edcc 100644 --- a/command.c +++ b/command.c @@ -19,7 +19,6 @@ /** \file command.c does client authentication and executes server commands */ #include /* gettimeofday */ -#include "crypt.h" #include "server.cmdline.h" #include "db.h" #include "server.h" @@ -32,6 +31,7 @@ #include "daemon.h" #include "string.h" #include "fd.h" +#include "user_list.h" static RC4_KEY rc4_recv_key; static RC4_KEY rc4_send_key; @@ -1062,7 +1062,7 @@ int handle_connect(int fd, struct sockaddr_in *addr) } PARA_DEBUG_LOG("received %s request for user %s\n", use_rc4? "rc4" : "auth", u.name); - if ((ret = get_user(&u)) < 0) + 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);