From e143917a91709dc58b159a4cef5fc824d6f66c3a Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Sun, 9 Jan 2000 19:23:50 +0000 Subject: Reduce calllimit from 10 to 3; this should avoid running out of stack when misconfiguring (jinmei@isl.rdc.toshiba.co.jp) --- sys/net/if_gif.c | 4 ++-- 1 file 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. -- cgit v1.2.3