]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix save() function of libipt_conntrack (Michael Schwendt)
authorMichael Schwendt <rh0209ms@arcor.de>
Thu, 5 Dec 2002 20:20:29 +0000 (20:20 +0000)
committerHarald Welte <laforge@gnumonks.org>
Thu, 5 Dec 2002 20:20:29 +0000 (20:20 +0000)
extensions/libipt_conntrack.c

index f190a3bec8777da7394be4705f0eeb261f65ca75..0cf07654d49251bd3a8936543dae56cc1475ca8b 100644 (file)
@@ -409,7 +409,7 @@ matchinfo_print(const struct ipt_ip *ip, const struct ipt_entry_match *match, in
        if(sinfo->flags & IPT_CONNTRACK_STATE) {
                printf("%sctstate ", optpfx);
                if (sinfo->invflags & IPT_CONNTRACK_STATE)
-                       fputc('!', stdout);
+                       printf("! ");
                print_state(sinfo->statemask);
        }
 
@@ -456,14 +456,14 @@ matchinfo_print(const struct ipt_ip *ip, const struct ipt_entry_match *match, in
        if(sinfo->flags & IPT_CONNTRACK_STATUS) {
                printf("%sctstatus ", optpfx);
                if (sinfo->invflags & IPT_CONNTRACK_STATE)
-                       fputc('!', stdout);
+                       printf("! ");
                print_status(sinfo->statusmask);
        }
 
        if(sinfo->flags & IPT_CONNTRACK_EXPIRES) {
                printf("%sctexpire ", optpfx);
                if (sinfo->invflags & IPT_CONNTRACK_EXPIRES)
-                       fputc('!', stdout);
+                       printf("! ");
 
                if (sinfo->expires_max == sinfo->expires_min)
                        printf("%lu ", sinfo->expires_min);