Fix segfaults if you use XDM-AUTHORIZATION-1 authorization keys for
remote X11 clients over IPv6. ok matthieu@
This commit is contained in:
parent
92c71b48a2
commit
e4bcb354a2
@ -1131,7 +1131,7 @@ GetAuthorization(
|
||||
|
||||
/* In the case of v4 mapped addresses send the v4
|
||||
part of the address - addr is already in network byte order */
|
||||
if (memcmp(addr+8, ipv4mappedprefix, 12) == 0) {
|
||||
if (memcmp((char *)addr+8, ipv4mappedprefix, 12) == 0) {
|
||||
for (i = 20 ; i < 24; i++)
|
||||
xdmcp_data[j++] = ((char *)addr)[i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user