summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/lka_filter.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/lka_filter.c b/usr.sbin/smtpd/lka_filter.c
index a10d9cbe72f..8d957020b86 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.34 2019/01/15 04:49:50 sunil Exp $ */
+/* $OpenBSD: lka_filter.c,v 1.35 2019/04/08 07:44:45 gilles Exp $ */
/*
* Copyright (c) 2018 Gilles Chehade <gilles@poolp.org>
@@ -458,16 +458,17 @@ lka_filter_process_response(const char *name, const char *line)
return 0;
response = ep+1;
- if ((ep = strchr(response, '|'))) {
- parameter = ep + 1;
- *ep = 0;
- }
if (strcmp(kind, "filter-dataline") == 0) {
filter_data_next(token, reqid, response);
return 1;
}
+ if ((ep = strchr(response, '|'))) {
+ parameter = ep + 1;
+ *ep = 0;
+ }
+
if (strcmp(response, "proceed") != 0 &&
strcmp(response, "reject") != 0 &&
strcmp(response, "disconnect") != 0 &&