]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
command.c: Document return value of handle_connect().
[paraslash.git] / command.c
index a72a524fa179e605e152adc32b6a37305162b70f..6b9f91de7a9b2acf76dd1e719fa6c88af96310ea 100644 (file)
--- a/command.c
+++ b/command.c
@@ -784,7 +784,7 @@ struct connection_features {
        int dummy; /* none at the moment */
 };
 
-static int parse_auth_request(char *buf, int len, struct user **u,
+static int parse_auth_request(char *buf, int len, const struct user **u,
                struct connection_features *cf)
 {
        int ret;
@@ -818,7 +818,7 @@ static int parse_auth_request(char *buf, int len, struct user **u,
                }
        }
        PARA_DEBUG_LOG("received auth request for user %s\n", username);
-       *u = lookup_user(username);
+       *u = user_list_lookup(username);
        ret = 1;
 out:
        free_argv(features);
@@ -900,6 +900,8 @@ static int run_command(struct command_context *cc, struct iovec *iov)
  * the function if the connection was not authenticated when the timeout
  * expires.
  *
+ * \return Standard.
+ *
  * \sa alarm(2), \ref crypt.c, \ref crypt.h.
  */
 int handle_connect(int fd)