Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 1999 11:18:49 +0100
From:      Michael Firnau <mfi@techfak.uni-kiel.de>
To:        freebsd-isdn@FreeBSD.ORG
Subject:   spppcontrol dumps core ...
Message-ID:  <19990205111849.56549@taipan.techfak.uni-kiel.de>

next in thread | raw e-mail | index | archive | help

Hi,

spppcontrol dumps core because the 'buf'-array is a bit too small:

const char *            
authflags(u_short flags)
{
        static char buf[10];			<--- should be 30 ?
        buf[0] = '\0'; 
        if (flags & AUTHFLAG_NOCALLOUT)
                strcat(buf, " callin");
        if (flags & AUTHFLAG_NORECHALLENGE)
                strcat(buf, " norechallenge");
        return buf;



Mike



+------------------------------------------------------------------+
|     Michael Firnau        | Technische Fakultaet der CAU zu Kiel |
| <mfi@techfak.uni-kiel.de> | Rechnerbetriebsgruppe    Kaiserstr.2 |
| Phone: +49 431 77572 107  | D-24143 Kiel                 Germany |
| Fax:   +49 431 77572 103  |    http://www.techfak.uni-kiel.de/   |
+------------------------------------------------------------------+


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990205111849.56549>