summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-01-09 19:23:50 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-01-09 19:23:50 +0000
commite143917a91709dc58b159a4cef5fc824d6f66c3a (patch)
tree7abfbc7dec990208b841267993484d47e7e63621
parent4a567a82ee4c9597cadff6b3c7580deb1e27431b (diff)
Reduce calllimit from 10 to 3; this should avoid running out of stack
when misconfiguring (jinmei@isl.rdc.toshiba.co.jp)
-rw-r--r--sys/net/if_gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 0a3197dfb33..ec6ec260117 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.2 2000/01/07 19:28:48 angelos Exp $ */
+/* $OpenBSD: if_gif.c,v 1.3 2000/01/09 19:23:49 angelos Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -121,7 +121,7 @@ gif_output(ifp, m, dst, rt)
register struct gif_softc *sc = (struct gif_softc*)ifp;
int error = 0;
static int called = 0; /* XXX: MUTEX */
- int calllimit = 10; /* XXX: adhoc */
+ int calllimit = 3; /* XXX: adhoc */
/*
* gif may cause infinite recursion calls when misconfigured.