From 516600858cb54906fb728d04e5edf1131ee7b3b2 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 10 Apr 2018 20:48:35 +0200 Subject: Fix parsing service names for ports Parsing is attempted both for numbers and service names and the temporary stored error message triggered to reset the state parameters about the set. Reported by Yuri D'Elia. --- include/libipset/session.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libipset/session.h') diff --git a/include/libipset/session.h b/include/libipset/session.h index 833f763..bac4d19 100644 --- a/include/libipset/session.h +++ b/include/libipset/session.h @@ -42,6 +42,7 @@ enum ipset_err_type { extern int ipset_session_report(struct ipset_session *session, enum ipset_err_type type, const char *fmt, ...); +extern int ipset_session_warning_as_error(struct ipset_session *session); #define ipset_err(session, fmt, args...) \ ipset_session_report(session, IPSET_ERROR, fmt , ## args) -- cgit v1.2.3