From 606dc7b90888ede30956cc1d35570e6b5d1073ee Mon Sep 17 00:00:00 2001 From: Geo Date: Thu, 11 Jul 2024 13:59:47 -0400 Subject: [PATCH] Swap lookup_user_record args Found by: DasBrain Amazingly, args were mis-ordered in the lookup_user_record function declaration. Those responsible have been sacked. Have you ever seen a moose? --- src/userrec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userrec.c b/src/userrec.c index 66bb8f16c..6961a58a8 100644 --- a/src/userrec.c +++ b/src/userrec.c @@ -283,7 +283,7 @@ struct userrec *get_user_from_member(memberlist *m) * 'm->account' for the account, use the independent source variable 'account' * if available. This allows redundant checking in case of unexpected NULLs */ -struct userrec *lookup_user_record(memberlist *m, char *host, char *account) +struct userrec *lookup_user_record(memberlist *m, char *account, char *host) { struct userrec *u = NULL;