summaryrefslogtreecommitdiffstats
path: root/libiptc
diff options
context:
space:
mode:
authorgandalf <gandalf>2004-09-23 18:23:20 +0000
committergandalf <gandalf>2004-09-23 18:23:20 +0000
commit15209b252ca936a8f7628afb0eb33a28c46d47b1 (patch)
tree94eef1cda959fc72cd4cd63bb4a84bf93c255aea /libiptc
parent3afd646e44e79bc6b1559bd7a363c9a5c3777c4b (diff)
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.
Diffstat (limited to 'libiptc')
-rw-r--r--libiptc/libiptc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
index 957af67..0058674 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);