diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2001-02-15 20:55:13 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2001-02-15 20:55:13 +0000 |
commit | 74cb2dda5f42cb174c986e42f0afbc743b18b75a (patch) | |
tree | 38bd86770b9b5565e815dc42462ce9e01fd07964 /lib/libwrap | |
parent | 941a39de8e0e3c0f5ecb02254d69bab9fe2b1422 (diff) |
fix change from previous commit that didn't get the ports correctly
out of sockaddr_inX's for client side ident.
Diffstat (limited to 'lib/libwrap')
-rw-r--r-- | lib/libwrap/rfc931.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libwrap/rfc931.c b/lib/libwrap/rfc931.c index 8986d105a88..d5fbd128bcc 100644 --- a/lib/libwrap/rfc931.c +++ b/lib/libwrap/rfc931.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rfc931.c,v 1.2 2000/10/14 00:56:15 itojun Exp $ */ +/* $OpenBSD: rfc931.c,v 1.3 2001/02/15 20:55:12 beck Exp $ */ /* * rfc931() speaks a common subset of the RFC 931, AUTH, TAP, IDENT and RFC @@ -15,7 +15,7 @@ #if 0 static char sccsid[] = "@(#) rfc931.c 1.10 95/01/02 16:11:34"; #else -static char rcsid[] = "$OpenBSD: rfc931.c,v 1.2 2000/10/14 00:56:15 itojun Exp $"; +static char rcsid[] = "$OpenBSD: rfc931.c,v 1.3 2001/02/15 20:55:12 beck Exp $"; #endif #endif @@ -100,12 +100,12 @@ char *dest; switch (rmt_sin->sa_family) { case AF_INET: salen = sizeof(struct sockaddr_in); - rmt_portp = &((struct sockaddr_in *)&rmt_sin)->sin_port; + rmt_portp = &(((struct sockaddr_in *)rmt_sin)->sin_port); break; #ifdef INET6 case AF_INET6: salen = sizeof(struct sockaddr_in6); - rmt_portp = &((struct sockaddr_in6 *)&rmt_sin)->sin6_port; + rmt_portp = &(((struct sockaddr_in6 *)rmt_sin)->sin6_port); break; #endif default: @@ -114,11 +114,11 @@ char *dest; } switch (our_sin->sa_family) { case AF_INET: - our_portp = &((struct sockaddr_in *)&our_sin)->sin_port; + our_portp = &(((struct sockaddr_in *)our_sin)->sin_port); break; #ifdef INET6 case AF_INET6: - our_portp = &((struct sockaddr_in6 *)&our_sin)->sin6_port; + our_portp = &(((struct sockaddr_in6 *)our_sin)->sin6_port); break; #endif default: |