Date: Thu, 14 Nov 2002 22:48:14 +0100 From: Michael Bretterklieber <mbretter@inode.at> To: freebsd-net@freebsd.org Subject: Re: libradius problem Message-ID: <3DD41A1E.6060800@inode.at> In-Reply-To: <3DD40C4D.3040101@inode.at> References: <3DD40C4D.3040101@inode.at>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Michael Bretterklieber wrote: > Hi, > > I found a problem in libradius. > > The structure-member req_len is in rad_auth_open() not initialized with 0. > > I'm writing a php-module for this lib and I found that this value was > not zero after rad_auth_open() and therfore I got "Maximum message > length exceeded" calling rad_put_string() the first time. > > Maybe its better to initialize this with 0. I finaly found the reason, I called rad_put_string() without creating a request before with rad_create_request(). Maybe it will be better to let rad_put_string() fail with an error message saying something like "rad_create_request" not called. bye, -- ------------------------------- ---------------------------------- Michael Bretterklieber - Michael.Bretterklieber@jawa.at JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200 -------------- privat ------------ A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: mbretter@inode.at Fax: ++43-(0)316-403274-10 http://www.inode.at/mbretter ------------------------------- ---------------------------------- "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DD41A1E.6060800>