Date: Wed, 19 Mar 2003 18:46:13 +0300 (MSK) From: maxes@peterlink.ru To: freebsd-ipfw@FreeBSD.ORG Subject: Re: dynamic rules: PARENT 65534 Message-ID: <Pine.BSI.4.40.0303191837340.21469-100000@buratino.peterlink.ru> In-Reply-To: <Pine.BSI.4.40.0303191418460.21469-100000@buratino.peterlink.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
/usr/src/sys/netinet/ip_fw2.c: $FreeBSD: src/sys/netinet/ip_fw2.c,v 1.6.2.3 2002/08/21 05:34:07 luigi Exp $ --- /usr/src/sys/netinet/ip_fw2.c.old Wed Aug 21 09:34:07 2002 +++ /usr/src/sys/netinet/ip_fw2.c Wed Mar 19 16:20:54 2003 @@ -617,7 +617,7 @@ ipfw_dyn_rule *old_q = q; \ \ /* remove a refcount to the parent */ \ - if (q->dyn_type == O_LIMIT) \ + if ((q->dyn_type == O_LIMIT) && (q->parent->count !=0)) \ q->parent->count--; \ DEB(printf("-- unlink entry 0x%08x %d -> 0x%08x %d, %d left\n", \ (q->id.src_ip), (q->id.src_port), \ It's hack, as I undestand ->count can't be less then 0. Error somewhere in logic. b.r. Kozin Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.4.40.0303191837340.21469-100000>