From ebd7d6074248d65425620ca94ce4766238d7fc48 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 25 Jun 2013 21:46:33 +0200 Subject: Fixed variable mix-up when calling eDBregister_login2() The uid and accessess profile variables had changed order. Which would cause a mismatch with the configured access profile and user-cert link. I'd like to thank Colin Ryan for catching this bug too. Signed-off-by: David Sommerseth --- plugin/eurephia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/eurephia.c b/plugin/eurephia.c index 5777cd7..03224f1 100644 --- a/plugin/eurephia.c +++ b/plugin/eurephia.c @@ -650,7 +650,7 @@ int eurephia_connect(eurephiaCTX *ctx, const char **env, certinfo *ci) { // Register the session login accprofile = eDBget_accessprofile(ctx, uid, certid); - ret = eDBregister_login2(ctx, session, certid, accprofile, uid, proto, + ret = eDBregister_login2(ctx, session, certid, uid, accprofile, proto, remipaddr, remport); eDBfree_session(ctx, session); eurephia_log(ctx, LOG_INFO, 1, "User '%s' connected", uname); -- cgit