m_dline: make apply_undline permissive

Trying to find invalid bans won't do anything unless they already exist,
in which case it's legitimate to try to remove them.
This commit is contained in:
Ed Kellett 2020-07-26 18:17:18 +01:00
parent 72464c6abd
commit cf0aa42180
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -362,7 +362,7 @@ apply_undline(struct Client *source_p, const char *cidr)
char buf[BUFSIZE];
struct ConfItem *aconf;
int masktype = parse_netmask_strict(cidr, NULL, NULL);
int masktype = parse_netmask(cidr, NULL, NULL);
if(masktype != HM_IPV4 && masktype != HM_IPV6)
{