Commit fea2ffa7 authored by Tom Lane's avatar Tom Lane

SCO_ACCEPT_BUG code didn't get updated for new SockAddr struct definition.

parent ecbed6e1
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * 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) ...@@ -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 * 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. * shouldn't hurt to catch it for all versions of those platforms.
*/ */
if (port->raddr.sa.sa_family == 0) if (port->raddr.addr.ss_family == 0)
port->raddr.sa.sa_family = AF_UNIX; port->raddr.addr.ss_family = AF_UNIX;
#endif #endif
/* fill in the server (local) address */ /* fill in the server (local) address */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment