[PATCH] Incorrect addrlen when calling connect
David Bartley
dtbartle@csclub.uwaterloo.ca
Sat Jun 21 17:05:00 GMT 2008
Hi,
In resolv/res_send.c, connect may be passed a 'struct sockaddr_in'
although the addrlen will always be sizeof(struct sockaddr_in6). The
attached patch fixes this by setting the addrlen according to
nsap->sin6_family, as done elsewhere in this file already.
-- David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-res_send-connect.diff
Type: text/x-diff
Size: 535 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20080621/424783a2/attachment.bin>
More information about the Libc-alpha
mailing list