aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_frag.c
diff options
context:
space:
mode:
authorDarren Reed <darrenr@FreeBSD.org>2000-07-19 13:57:32 +0000
committerDarren Reed <darrenr@FreeBSD.org>2000-07-19 13:57:32 +0000
commit4dca8a6de1933456e724af9c9bd7ea3d726230ce (patch)
treef4442c5a06b8aebc03598876ed7fec7417bbb215 /sys/netinet/ip_frag.c
parent41d01fd6fac172fa39e267cf49c9dd291f7ca549 (diff)
downloadsrc-4dca8a6de1933456e724af9c9bd7ea3d726230ce.tar.gz
src-4dca8a6de1933456e724af9c9bd7ea3d726230ce.zip
import ipfilter 3.4.8
Notes
Notes: svn path=/vendor-sys/ipfilter/dist-old/; revision=63521
Diffstat (limited to 'sys/netinet/ip_frag.c')
-rw-r--r--sys/netinet/ip_frag.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_frag.c b/sys/netinet/ip_frag.c
index 3e0a7f392e56..5019c60ae753 100644
--- a/sys/netinet/ip_frag.c
+++ b/sys/netinet/ip_frag.c
@@ -7,7 +7,7 @@
*/
#if !defined(lint)
static const char sccsid[] = "@(#)ip_frag.c 1.11 3/24/96 (C) 1993-2000 Darren Reed";
-static const char rcsid[] = "@(#)$Id: ip_frag.c,v 2.10.2.3 2000/05/05 15:10:23 darrenr Exp $";
+static const char rcsid[] = "@(#)$Id: ip_frag.c,v 2.10.2.4 2000/06/06 15:49:15 darrenr Exp $";
#endif
#if defined(KERNEL) && !defined(_KERNEL)
@@ -144,6 +144,9 @@ ipfr_t *table[];
ipfr_t **fp, *fra, frag;
u_int idx;
+ if (ipfr_inuse >= IPFT_SIZE)
+ return NULL;
+
frag.ipfr_p = ip->ip_p;
idx = ip->ip_p;
frag.ipfr_id = ip->ip_id;