We neglected to set conn->raddr.salen, leading to breakage of CANCEL

and probably other stuff.
This commit is contained in:
Tom Lane 2003-06-20 04:09:12 +00:00
parent 1bd22f55cf
commit 5fc9f3d574

View File

@ -8,7 +8,7 @@
*
*
* 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;
/* 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);
conn->raddr.salen = addr_cur->ai_addrlen;
/* Open a socket */
conn->sock = socket(addr_cur->ai_family,