From b0f3d2d7261be3fe256a66abcc237241fea43a02 Mon Sep 17 00:00:00 2001 From: Martin Josefsson Date: Thu, 23 Sep 2004 18:23:20 +0000 Subject: Fix returnvalue of TC_BUILTIN() All jumps to nonexisting chains were believed to be jumps to builtin chains, that's bad as it made it impossible to add rules with external targets. --- libiptc/libiptc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiptc') diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 957af672..0058674e 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1,4 +1,4 @@ -/* Library which manipulates firewall rules. Version $Revision: 1.55 $ */ +/* Library which manipulates firewall rules. Version $Revision: 1.56 $ */ /* Architecture of firewall rules is as follows: * @@ -1131,7 +1131,7 @@ TC_BUILTIN(const char *chain, const TC_HANDLE_T handle) c = iptcc_find_label(chain, handle); if (!c) { errno = ENOENT; - return -1; + return 0; } return iptcc_is_builtin(c); -- cgit v1.2.3