summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_recent.c
diff options
context:
space:
mode:
authorSven Strickroth <sstrickroth@gym-oha.de>2003-06-01 10:11:43 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2003-06-01 10:11:43 +0000
commit0c1b776db83c5d49a2ec53f575deda9fd2fa03fc (patch)
treead588cf71ff3b9407a864ea0111265a01eeb402f /extensions/libipt_recent.c
parent25fc1d7c9ff5df951346d6cf07b24ea8a2f376ac (diff)
Fix libipt_recent.c save() (Sven Strickroth)
Diffstat (limited to 'extensions/libipt_recent.c')
-rw-r--r--extensions/libipt_recent.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/extensions/libipt_recent.c b/extensions/libipt_recent.c
index a34f3774..aa32aa07 100644
--- a/extensions/libipt_recent.c
+++ b/extensions/libipt_recent.c
@@ -178,7 +178,8 @@ print(const struct ipt_ip *ip,
{
struct ipt_recent_info *info = (struct ipt_recent_info *)match->data;
- if (info->invert) fputc('!', stdout);
+ if (info->invert)
+ fputc('!', stdout);
printf("recent: ");
if(info->check_set & IPT_RECENT_SET) printf("SET ");
@@ -197,11 +198,11 @@ print(const struct ipt_ip *ip,
static void
save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
{
- struct ipt_recent_info *info = (struct ipt_recent_info *)match;
+ struct ipt_recent_info *info = (struct ipt_recent_info *)match->data;
- if (info->invert) fputc('!', stdout);
+ if (info->invert)
+ printf("! ");
- printf("recent: ");
if(info->check_set & IPT_RECENT_SET) printf("--set ");
if(info->check_set & IPT_RECENT_CHECK) printf("--rcheck ");
if(info->check_set & IPT_RECENT_UPDATE) printf("--update ");