summaryrefslogtreecommitdiffstats
path: root/iptables/iptables-restore.c
diff options
context:
space:
mode:
authorJiri Popelka <jpopelka@redhat.com>2011-06-10 15:25:58 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-06-22 15:57:27 +0200
commitee80faf4438102395bc4034894b6468453181be9 (patch)
tree9c4067db7fbbc5460ff78a8ac7b5048896f263d8 /iptables/iptables-restore.c
parent474c18d7982407246dd724c6fa3939f78466620a (diff)
iptables: Coverity: REVERSE_INULL
ip6tables-restore.c:186: deref_ptr_in_call: Dereferencing pointer "in". ip6tables-restore.c:463: check_after_deref: Dereferencing "in" before a null check. iptables-restore.c:192: deref_ptr_in_call: Dereferencing pointer "in". iptables-restore.c:468: check_after_deref: Dereferencing "in" before a null check. iptables-xml.c:671: deref_ptr_in_call: Dereferencing pointer "in". iptables-xml.c:873: check_after_deref: Dereferencing "in" before a null check. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'iptables/iptables-restore.c')
-rw-r--r--iptables/iptables-restore.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c
index 26245997..1cb833c0 100644
--- a/iptables/iptables-restore.c
+++ b/iptables/iptables-restore.c
@@ -465,7 +465,6 @@ main(int argc, char *argv[])
exit(1);
}
- if (in != NULL)
- fclose(in);
+ fclose(in);
return 0;
}