summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2018-12-21 17:22:51 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2018-12-21 17:22:51 +0000
commitff915bbec2e796fa5f3af948fa131bee45253bcd (patch)
tree453ca7cf8fc576e484e7188d652a5d57644d77cd /usr.sbin
parent737aaa76d2dcfa5576adadadb19f27c7a3898b12 (diff)
use ss_src in src builtin filters
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/lka_filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/lka_filter.c b/usr.sbin/smtpd/lka_filter.c
index bdeac000b96..19a7b66700f 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.17 2018/12/21 17:04:46 gilles Exp $ */
+/* $OpenBSD: lka_filter.c,v 1.18 2018/12/21 17:22:50 gilles Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
@@ -787,8 +787,8 @@ filter_builtins_global(struct filter_session *fs, struct filter *filter, uint64_
filter_check_rdns(filter, fs->rdns) ||
filter_check_rdns_table(filter, K_DOMAIN, fs->rdns) ||
filter_check_rdns_regex(filter, fs->rdns) ||
- filter_check_src_table(filter, K_NETADDR, fs->rdns) ||
- filter_check_src_regex(filter, fs->rdns))
+ filter_check_src_table(filter, K_NETADDR, ss_to_text(&fs->ss_src)) ||
+ filter_check_src_regex(filter, ss_to_text(&fs->ss_src)))
return 1;
return 0;
}