From a48a8f0d57d1ec21779bf05cbd28fe7a0105033a Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 25 Sep 1999 10:12:58 +0000 Subject: [PATCH] Bugfix for "permits nothing"; ATXTLEN buffer overflow fixed. --- ipif/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipif/service.c b/ipif/service.c index 18322d4..d2591ba 100644 --- a/ipif/service.c +++ b/ipif/service.c @@ -49,7 +49,7 @@ #define NARGS 4 #define MAXEXROUTES 5 -#define ATXTLEN 12 +#define ATXTLEN 16 static const unsigned long gidmaxval= (unsigned long)((gid_t)-2); static const char *const protos_ok[]= { "slip", "cslip", "adaptive", 0 }; @@ -294,7 +294,7 @@ static void permit(unsigned long pprefix, unsigned long pmask) { } } if (!proto) { - if (!any) fputs(" nothing!",stderr); + if (!any) fputs(" nothing",stdout); putchar('\n'); } } -- 2.30.2