X-Git-Url: http://developer.intra2net.com/git/?p=libipt_ACCOUNT;a=blobdiff_plain;f=src%2Fipt_ACCOUNT_cl.c;h=aa4937a167a0ad49bfc0d6fc3867103e30063c0f;hp=d773b3d17b999cf237d1925a5587d984d0b6182e;hb=6a4a14ebf16a59a1aa60006c34b4b4b7bac2be4f;hpb=d7e0bb9c552e772bc1ac461194356d1fd6483000 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;