diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-11-03 20:45:49 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-11-03 20:45:49 +0000 |
commit | bf20e7fec51343caa873599631c1d5a206bda206 (patch) | |
tree | 5b01c5ea86cfd043e7eb6d145568848fca8ef693 /usr.sbin/smtpd | |
parent | be1df4a037e292e881bb9e6a180f21f4dd27fb41 (diff) |
hostnames are case-sensitive of course...
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/lka_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka_filter.c b/usr.sbin/smtpd/lka_filter.c index 0e025fa89e7..000cb94d72c 100644 --- a/usr.sbin/smtpd/lka_filter.c +++ b/usr.sbin/smtpd/lka_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka_filter.c,v 1.3 2018/11/03 13:56:49 gilles Exp $ */ +/* $OpenBSD: lka_filter.c,v 1.4 2018/11/03 20:45:48 gilles Exp $ */ /* * Copyright (c) 2018 Gilles Chehade <gilles@poolp.org> @@ -227,7 +227,7 @@ filter_check_rdns_helo(struct filter_rule *rule, const char *hostname, const cha if (rule->rdns) { ret = text_to_netaddr(&netaddr, hostname); if (!ret) - ret = strcmp(hostname, param); + ret = strcasecmp(hostname, param); ret = rule->not_rdns < 0 ? !ret : ret; } return ret; |