mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
We neglected to set conn->raddr.salen, leading to breakage of CANCEL
and probably other stuff.
This commit is contained in:
parent
1bd22f55cf
commit
5fc9f3d574
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.248 2003/06/14 17:49:53 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.249 2003/06/20 04:09:12 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1080,8 +1080,9 @@ keep_going: /* We will come back to here until there
|
|||||||
struct addrinfo *addr_cur = conn->addr_cur;
|
struct addrinfo *addr_cur = conn->addr_cur;
|
||||||
|
|
||||||
/* Remember current address for possible error msg */
|
/* Remember current address for possible error msg */
|
||||||
memcpy(&conn->raddr, addr_cur->ai_addr,
|
memcpy(&conn->raddr.addr, addr_cur->ai_addr,
|
||||||
addr_cur->ai_addrlen);
|
addr_cur->ai_addrlen);
|
||||||
|
conn->raddr.salen = addr_cur->ai_addrlen;
|
||||||
|
|
||||||
/* Open a socket */
|
/* Open a socket */
|
||||||
conn->sock = socket(addr_cur->ai_family,
|
conn->sock = socket(addr_cur->ai_family,
|
||||||
|
Loading…
Reference in New Issue
Block a user