]> granicus.if.org Git - postgresql/commitdiff
Postmaster erroneously rejected SSL connections on IPv6.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Aug 2003 23:25:00 +0000 (23:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 1 Aug 2003 23:25:00 +0000 (23:25 +0000)
src/backend/postmaster/postmaster.c

index 688b13bba56ab251dde922f92bd3a334ce4ac644..3adea9ab4045e30be7e2b96a19ccd3622c9d57a8 100644 (file)
@@ -37,7 +37,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.337 2003/07/27 21:49:54 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.338 2003/08/01 23:25:00 tgl Exp $
  *
  * NOTES
  *
@@ -1232,7 +1232,7 @@ ProcessStartupPacket(Port *port, bool SSLdone)
 
 #ifdef USE_SSL
                /* No SSL when disabled or on Unix sockets */
-               if (!EnableSSL || port->laddr.addr.ss_family != AF_INET)
+               if (!EnableSSL || IS_AF_UNIX(port->laddr.addr.ss_family))
                        SSLok = 'N';
                else
                        SSLok = 'S';            /* Support for SSL */