From 6a4a14ebf16a59a1aa60006c34b4b4b7bac2be4f Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 20 Apr 2004 13:19:06 +0000 Subject: [PATCH] libipt_ACCOUNT: (tomj) fixed illegal handle free issue on deinit --- src/ipt_ACCOUNT_cl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ipt_ACCOUNT_cl.c b/src/ipt_ACCOUNT_cl.c index d773b3d..aa4937a 100644 --- a/src/ipt_ACCOUNT_cl.c +++ b/src/ipt_ACCOUNT_cl.c @@ -44,7 +44,7 @@ int ipt_ACCOUNT_init(struct ipt_ACCOUNT_context *ctx) void ipt_ACCOUNT_free_entries(struct ipt_ACCOUNT_context *ctx) { - if (ctx->handle.handle_nr >= 0) + if (ctx->handle.handle_nr != -1) { setsockopt(ctx->sockfd, IPPROTO_IP, IPT_SO_SET_ACCOUNT_HANDLE_FREE, &ctx->handle, sizeof (struct ipt_account_handle_sockopt)); ctx->handle.handle_nr = -1; -- 1.7.1