Fix use of uninitialised variable and hostmask matching logic in userhost_unban()
Initialise ip_str so that it isn't used uninitialised. Don't strip server flags from user@ portion of the hostmask, so that it will not miss matching bans. Switch ip_str from alloca() to malloc_sprintf() / new_free() - there's no particular need for alloca() here.
This commit is contained in:
Reference in New Issue
Block a user