Commit 134a1c81 authored by Bruce Momjian's avatar Bruce Momjian

Use KAME accessor macros for addr8.

parent 9e1c5fba
......@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.5 2002/06/15 22:06:09 tgl Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.6 2002/06/17 15:55:09 momjian Exp $
*
* NOTES
* The client *requires* a valid server certificate. Since
......@@ -414,7 +414,7 @@ verify_peer (PGconn *conn)
sin6 = (struct sockaddr_in6 *) &addr;
for (s = h->h_addr_list; *s != NULL; s++)
{
if (!memcmp(sin6->sin6_addr.in6_u.u6_addr8, *s, h->h_length))
if (!memcmp(sin6->sin6_addr.s6_addr8, *s, h->h_length))
return 0;
}
break;
......
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