Align check_one_kline better with find_kline

This commit is contained in:
Ed Kellett 2020-04-19 00:53:10 +01:00
parent de0673d7ad
commit 9274c0f3f4
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -605,9 +605,13 @@ check_one_kline(struct ConfItem *kline)
if (comp_with_mask_sock((struct sockaddr *)&client_p->localClient->ip,
(struct sockaddr *)&sockaddr, bits))
matched = 1;
break;
case HM_HOST:
if (match(kline->host, client_p->orighost))
matched = 1;
if (match(kline->host, client_p->sockhost))
matched = 1;
break;
}
if (!matched)