From owner-freebsd-net Thu Nov 14 13:51:25 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 252BA37B401 for ; Thu, 14 Nov 2002 13:51:24 -0800 (PST) Received: from smtp.inode.at (smtp-01.inode.at [62.99.194.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id A453E43E88 for ; Thu, 14 Nov 2002 13:51:23 -0800 (PST) (envelope-from mbretter@inode.at) Received: from line-c-129.adsl-dynamic.inode.at ([62.99.151.129]:1041 helo=inode.at) by smtp.inode.at with esmtp (Exim 4.05) id 18CRtR-0004TP-00 for freebsd-net@freebsd.org; Thu, 14 Nov 2002 22:51:21 +0100 Message-ID: <3DD41A1E.6060800@inode.at> Date: Thu, 14 Nov 2002 22:48:14 +0100 From: Michael Bretterklieber User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.2b) Gecko/20021016 X-Accept-Language: de-at, de-de, de, en, en-us MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: libradius problem References: <3DD40C4D.3040101@inode.at> In-Reply-To: <3DD40C4D.3040101@inode.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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