path: root/libxtables
diff options
authorArturo Borrero <>2015-01-29 17:44:33 +0100
committerPablo Neira Ayuso <>2015-01-30 19:43:14 +0100
commit417bb65240a7d444a26232b1d8b30fa3ee6ecbf3 (patch)
tree37545d66fc7bf405fe70332051265d067e7ee969 /libxtables
parent1bad0c75aa5696590d5cc7279ae6a6830f761d16 (diff)
libxtables: search first for AF-specific extension
There are some extension which may name-clash, for example: * * Let's search first for AF-specific extension and then for the generic libxt_**. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'libxtables')
1 files changed, 1 insertions, 1 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index 6985a274..16e4d969 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -549,7 +549,7 @@ void xtables_parse_interface(const char *arg, char *vianame,
static void *load_extension(const char *search_path, const char *af_prefix,
const char *name, bool is_target)
- const char *all_prefixes[] = {"libxt_", af_prefix, NULL};
+ const char *all_prefixes[] = {af_prefix, "libxt_", NULL};
const char **prefix;
const char *dir = search_path, *next;
void *ptr = NULL;