mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
SCO_ACCEPT_BUG code didn't get updated for new SockAddr struct definition.
This commit is contained in:
parent
ecbed6e1b9
commit
fea2ffa7d8
@ -30,7 +30,7 @@
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.163 2003/08/04 02:39:59 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.164 2003/08/07 19:37:13 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -501,8 +501,8 @@ StreamConnection(int server_fd, Port *port)
|
||||
* UnixWare 7+ and OpenServer 5.0.4 are known to have this bug, but it
|
||||
* shouldn't hurt to catch it for all versions of those platforms.
|
||||
*/
|
||||
if (port->raddr.sa.sa_family == 0)
|
||||
port->raddr.sa.sa_family = AF_UNIX;
|
||||
if (port->raddr.addr.ss_family == 0)
|
||||
port->raddr.addr.ss_family = AF_UNIX;
|
||||
#endif
|
||||
|
||||
/* fill in the server (local) address */
|
||||
|
Loading…
Reference in New Issue
Block a user