From owner-freebsd-net Thu Nov 14 12:52:34 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 03DD237B401 for ; Thu, 14 Nov 2002 12:52:33 -0800 (PST) Received: from smtp.inode.at (smtp-02.inode.at [62.99.194.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC59943E88 for ; Thu, 14 Nov 2002 12:52:31 -0800 (PST) (envelope-from mbretter@inode.at) Received: from line-c-129.adsl-dynamic.inode.at ([62.99.151.129]:1026 helo=inode.at) by smtp.inode.at with esmtp (Exim 4.10) id 18CQyB-0002De-00 for freebsd-net@freebsd.org; Thu, 14 Nov 2002 21:52:12 +0100 Message-ID: <3DD40C4D.3040101@inode.at> Date: Thu, 14 Nov 2002 21:49:17 +0100 From: Michael Bretterklieber Organization: JAWA Management Software GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i386; de-AT; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: libradius problem 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, 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. 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