-/* $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>
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 &&