I would agree that the attached patch for this looks clean and should be applied as well. sockaddr_storage can be safely utilized in this context to support both IPv6 and IPv4 correctly. Casting reading data out of sockaddr in IPv6 land will cause crashes for sure. While this patch fixes this specific crash the code should probably be audited for similar situations as well.