Skip to content

Commit

Permalink
Swap lookup_user_record args
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
vanosg authored Jul 11, 2024
1 parent 41a0acc commit 606dc7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/userrec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 606dc7b

Please sign in to comment.