Skip to content

Commit fea2ffa

Browse files
committed
SCO_ACCEPT_BUG code didn't get updated for new SockAddr struct definition.
1 parent ecbed6e commit fea2ffa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
3131
* Portions Copyright (c) 1994, Regents of the University of California
3232
*
33-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.163 2003/08/04 02:39:59 momjian Exp $
33+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.164 2003/08/07 19:37:13 tgl Exp $
3434
*
3535
*-------------------------------------------------------------------------
3636
*/
@@ -501,8 +501,8 @@ StreamConnection(int server_fd, Port *port)
501501
* UnixWare 7+ and OpenServer 5.0.4 are known to have this bug, but it
502502
* shouldn't hurt to catch it for all versions of those platforms.
503503
*/
504-
if (port->raddr.sa.sa_family == 0)
505-
port->raddr.sa.sa_family = AF_UNIX;
504+
if (port->raddr.addr.ss_family == 0)
505+
port->raddr.addr.ss_family = AF_UNIX;
506506
#endif
507507

508508
/* fill in the server (local) address */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy