From a7dee7396ccc782e6194e87cd16dcd8a453d4f35 Mon Sep 17 00:00:00 2001 From: frekky Date: Tue, 27 Oct 2015 18:36:00 +0800 Subject: [PATCH] Making function of check_authenticated_user_and_ip a little more clear --- src/user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/user.c b/src/user.c index a16487b..a5509a2 100644 --- a/src/user.c +++ b/src/user.c @@ -228,9 +228,10 @@ check_user_and_ip(int userid, struct query *q) return 1; } -/* This checks that user has passed normal (non-raw) login challenge */ int check_authenticated_user_and_ip(int userid, struct query *q) +/* This checks that user has passed normal (non-raw) login challenge + * Returns 0 on success, 1 if user is not authenticated/IP is wrong */ { int res = check_user_and_ip(userid, q); if (res)