Skip to content

Commit

Permalink
Fix get_user_from_member return value
Browse files Browse the repository at this point in the history
Found by: mortmann

When get_user_from_member() is called on a member record that doesn't have a user-record associated, it incorrectly (always) returned NULL, instead of returning the user-record that may or may not be NULL.
  • Loading branch information
vanosg authored Aug 22, 2024
1 parent 54f7ab9 commit 9dbce4c
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 @@ -269,7 +269,7 @@ struct userrec *get_user_from_member(memberlist *m)
getuser_done:
m->user = ret;
m->tried_getuser = 1;
return NULL;
return ret;
}

/* Wrapper function to find an Eggdrop user record based on either a provided
Expand Down

0 comments on commit 9dbce4c

Please sign in to comment.