X-Git-Url: http://developer.intra2net.com/git/?p=libipt_ACCOUNT;a=blobdiff_plain;f=src%2Fipt_ACCOUNT_cl.c;fp=src%2Fipt_ACCOUNT_cl.c;h=0d8d4d84dd7f1a09af9669b9c73abd8bf19d9fe5;hp=1791eaa804d865f61d8bb82443aa8a4312d8b6aa;hb=a92b7b942ef323f4c58f7e9d4801cd8253417da4;hpb=80c3c64017c1fe4e99e8c3164380804ca7dc7df6 diff --git a/src/ipt_ACCOUNT_cl.c b/src/ipt_ACCOUNT_cl.c index 1791eaa..0d8d4d8 100644 --- a/src/ipt_ACCOUNT_cl.c +++ b/src/ipt_ACCOUNT_cl.c @@ -19,6 +19,7 @@ int ipt_ACCOUNT_init(struct ipt_ACCOUNT_context *ctx) { memset (ctx, 0, sizeof(struct ipt_ACCOUNT_context)); + ctx->handle.handle_nr = -1; ctx->sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); if (ctx->sockfd < 0) { @@ -152,6 +153,7 @@ int ipt_ACCOUNT_get_handle_usage(struct ipt_ACCOUNT_context *ctx) ctx->error_str = "Can't get handle usage information from kernel"; return -1; } + ctx->handle.handle_nr = -1; return ctx->handle.itemcount; }