From: ian Date: Sat, 25 Sep 1999 10:12:58 +0000 (+0000) Subject: Bugfix for "permits nothing"; ATXTLEN buffer overflow fixed. X-Git-Tag: branchpoint-1996-06-19-retrospective-beforeuserv~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv-utils.git;a=commitdiff_plain;h=a48a8f0d57d1ec21779bf05cbd28fe7a0105033a Bugfix for "permits nothing"; ATXTLEN buffer overflow fixed. --- 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'); } }