]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxtables: fix compile error due to incomplete change
authorPeter Volkov <pva@gentoo.org>
Tue, 24 Mar 2009 08:09:16 +0000 (11:09 +0300)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 24 Mar 2009 11:10:08 +0000 (12:10 +0100)
Commit 2338efd8f799d8373dc196c797bda9690283b698 forgot to update
the constant in one place, and the compile error triggered only
when -DNO_SHARED_LIBS (configure --disable-shared) was in effect.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
xtables.c

index 1214127181789e48eb406989bf1aefd7be43bfd8..044603f93aa2c10f9f097a7e74d55348e366c48b 100644 (file)
--- a/xtables.c
+++ b/xtables.c
@@ -638,7 +638,7 @@ xtables_find_target(const char *name, enum xtables_tryload tryload)
                else
                        ptr = NULL;
        }
-       if(!ptr && (tryload == LOAD_MUST_SUCCEED)) {
+       if (ptr == NULL && tryload == XTF_LOAD_MUST_SUCCEED) {
                xt_params->exit_err(PARAMETER_PROBLEM,
                           "Couldn't find target `%s'\n", name);
        }