diff options
author | Jiri Popelka <jpopelka@redhat.com> | 2011-06-10 15:25:57 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-06-22 15:55:17 +0200 |
commit | 474c18d7982407246dd724c6fa3939f78466620a (patch) | |
tree | f062a248eed10507368a56ce88e1f4df4908fc74 /libipq | |
parent | 96d0d0130a9a08803406c5c18681903446088ebf (diff) |
iptables: Coverity: NEGATIVE_RETURNS
libipq.c:232: var_tested_neg: Variable "h->fd" tests negative.
libipq.c:234: negative_returns: "h->fd" is passed to a parameter that
cannot be negative.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'libipq')
-rw-r--r-- | libipq/libipq.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libipq/libipq.c b/libipq/libipq.c index e3304875..fb65971a 100644 --- a/libipq/libipq.c +++ b/libipq/libipq.c @@ -231,7 +231,6 @@ struct ipq_handle *ipq_create_handle(uint32_t flags, uint32_t protocol) if (h->fd == -1) { ipq_errno = IPQ_ERR_SOCKET; - close(h->fd); free(h); return NULL; } |