[psqlODBC 08.02.0401] Typo - Mailing list pgsql-odbc

From Rainer Bauer
Subject [psqlODBC 08.02.0401] Typo
Date
Msg-id 22tv539amc962jer1c6dujom5g31761uhh@4ax.com
Whole thread Raw
Responses Re: [psqlODBC 08.02.0401] Typo
List pgsql-odbc
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;

Rainer

pgsql-odbc by date:

Previous
From: "Adnan DURSUN"
Date:
Subject: Re: LISTEN / NOTIFY Feature
Next
From: Rainer Bauer
Date:
Subject: [psqlODBC 08.02.0401] Driver option socket buffer size is ignored