From 474c18d7982407246dd724c6fa3939f78466620a Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 10 Jun 2011 15:25:57 +0200 Subject: 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 --- libipq/libipq.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libipq') 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; } -- cgit v1.2.3