diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-11-28 10:57:30 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-11-28 10:57:30 +0000 |
commit | 7a8d6a72d399e1deda8b415c413cb2469e19a041 (patch) | |
tree | 653f19175fc1a2974d66b42f8085b35b3044fd77 /usr.sbin/smtpd/table.c | |
parent | 8d074eb11320c5e14996064a677523c907e1dfd1 (diff) |
allow subdomain matching in mailaddr tables
Diffstat (limited to 'usr.sbin/smtpd/table.c')
-rw-r--r-- | usr.sbin/smtpd/table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/table.c b/usr.sbin/smtpd/table.c index f1e6a94d472..0291d83ef1a 100644 --- a/usr.sbin/smtpd/table.c +++ b/usr.sbin/smtpd/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.11 2013/11/18 11:47:16 eric Exp $ */ +/* $OpenBSD: table.c,v 1.12 2013/11/28 10:57:29 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> @@ -377,7 +377,7 @@ table_mailaddr_match(const char *s1, const char *s2) if (! text_to_mailaddr(&m2, s2)) return 0; - if (strcasecmp(m1.domain, m2.domain)) + if (! table_domain_match(m1.domain, m2.domain)) return 0; if (m2.user[0]) |