diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2015-01-29 17:44:33 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-01-30 19:43:14 +0100 |
commit | 417bb65240a7d444a26232b1d8b30fa3ee6ecbf3 (patch) | |
tree | 37545d66fc7bf405fe70332051265d067e7ee969 /libxtables | |
parent | 1bad0c75aa5696590d5cc7279ae6a6830f761d16 (diff) |
libxtables: search first for AF-specific extension
There are some extension which may name-clash, for example:
* libxt_mark.so
* liebt_mark.so
Let's search first for AF-specific extension and then for the generic libxt_**.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libxtables')
-rw-r--r-- | libxtables/xtables.c | 2 |
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; |