tftpd: Canonicalize all the addresses
commit7678ae7f14e5aa6792c4486d4eedcb2db887872c
authorH. Peter Anvin <hpa@zytor.com>
Fri, 7 Aug 2015 18:49:13 +0000 (7 11:49 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 7 Aug 2015 18:49:13 +0000 (7 11:49 -0700)
treeaa096f1a99486dca86fea3dea8c10cc5d7650728
parentff819b108a14f40612ebfb15937ae4a1b632bab9
tftpd: Canonicalize all the addresses

We cannot canonicalize myaddr and not the from address.  We need to
canonicalize both of them, or else we'll try to create an IPv4 socket
and bind an IPv6-mapped IPv4 address to it, which is going to fail.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
tftpd/recvfrom.c
tftpd/recvfrom.h
tftpd/tftpd.c