Fix problem with the sockaddr struct.

See commit comments.