Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A63FA9FC612 for ; Fri, 1 Jun 2007 18:52:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 18418-02-2 for ; Fri, 1 Jun 2007 18:52:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sd.tpf.co.jp (mail.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id BE1619FC5DD for ; Fri, 1 Jun 2007 18:52:48 -0300 (ADT) Received: (qmail 10381 invoked from network); 2 Jun 2007 06:52:46 +0900 X-Authentication: inoue was authenticated by ftp.tpf.co.jp at 2 Jun 2007 06:52:46 +0900 Received: from unknown (HELO ?192.168.11.3?) (219.61.40.6) by ftp.tpf.co.jp with SMTP; 2 Jun 2007 06:52:46 +0900 Message-ID: <4660952C.9060002@tpf.co.jp> Date: Sat, 02 Jun 2007 06:52:44 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Rainer Bauer CC: pgsql-odbc@postgresql.org Subject: Re: [psqlODBC 08.02.0401] Typo References: <22tv539amc962jer1c6dujom5g31761uhh@4ax.com> In-Reply-To: <22tv539amc962jer1c6dujom5g31761uhh@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/6 X-Sequence-Number: 8995 Rainer Bauer wrote: > Hi, > > while browsing the source I found a typo in socket.c::SOCK_Constructor() > > Original code: > if (rv) > rv->buffer_size = > conn->connInfo.drivers.socket_buffersize; > else > rv->buffer_size = globals.socket_buffersize; > > But since rv is allocated and checked before, the test should probably be: > if (conn) > rv->buffer_size = > conn->connInfo.drivers.socket_buffersize; > else > rv->buffer_size = globals.socket_buffersize; Oops you are right. Thanks. regards, Hiroshi Inoue