summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVickenty Fesunov <kent@comintern.ru>2006-11-13 14:48:02 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-11-13 14:48:02 -0800
commit623dacd509bd6c0c1f0c2c424933818ff34788ca (patch)
treead062e6c621cc50281d4812c8005ed69ceeb6b47
parent37f9293e3cc00411d8d335ce729d18995bb9ce59 (diff)
Bug 8995: Copying address into in6_addr instead of in6_addr.sin6_addr in forward_respond()
Bugzilla #8995 <https://bugs.freedesktop.org/show_bug.cgi?id=8995> Patch #7759 <https://bugs.freedesktop.org/attachment.cgi?id=7759>
-rw-r--r--xdmcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdmcp.c b/xdmcp.c
index 51176cc..e4774f4 100644
--- a/xdmcp.c
+++ b/xdmcp.c
@@ -812,7 +812,7 @@ forward_respond (
in6_addr.sin6_len = sizeof(in6_addr);
#endif
in6_addr.sin6_family = AF_INET6;
- memmove(&in6_addr,clientAddress.data,clientAddress.length);
+ memmove(&in6_addr.sin6_addr,clientAddress.data,clientAddress.length);
memmove((char *) &in6_addr.sin6_port, clientPort.data, 2);
client = (struct sockaddr *) &in6_addr;
clientlen = sizeof (in6_addr);