The size of the client address may be modified by recfrom. So, the last parameter of sendto should be the modified size.