]> granicus.if.org Git - postgresql/commitdiff
SCO_ACCEPT_BUG code didn't get updated for new SockAddr struct definition.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Aug 2003 19:37:13 +0000 (19:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Aug 2003 19:37:13 +0000 (19:37 +0000)
src/backend/libpq/pqcomm.c

index a3d878edfa2551184f085b839b9f1c4a8b154e39..72d444ad8f2ddecbde2b431871f348621fa24050 100644 (file)
@@ -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 */