diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-03-24 10:57:42 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-03-29 16:48:11 +0100 |
commit | 5c522b4523f2edb8e581131ba4cb414a5ee7ece4 (patch) | |
tree | f50f5e09bd3c6579830b31c5a26b40f0b1907333 /extensions/libxt_osf.c | |
parent | 71e2bf5cf25a821d62f7d75eb8efa4c61a214c6b (diff) |
libxt_osf: fix bad location for location in --genre
closes http://bugzilla.netfilter.org/show_bug.cgi?id=805
Reported-by: Bourne Without <blackhole@airpost.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libxt_osf.c')
-rw-r--r-- | extensions/libxt_osf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/libxt_osf.c b/extensions/libxt_osf.c index 4e2139a5..52dba474 100644 --- a/extensions/libxt_osf.c +++ b/extensions/libxt_osf.c @@ -92,7 +92,10 @@ static void osf_save(const void *ip, const struct xt_entry_match *match) { const struct xt_osf_info *info = (const struct xt_osf_info*) match->data; - printf(" --genre %s%s", (info->flags & XT_OSF_INVERT) ? "! ": "", info->genre); + if (info->flags & XT_OSF_INVERT) + printf(" !"); + + printf(" --genre %s", info->genre); if (info->flags & XT_OSF_TTL) printf(" --ttl %u", info->ttl); if (info->flags & XT_OSF_LOG) |