Fix uninitialized argument in getsockname().

getsockname() should be called with the length of the supplied sockaddr structure.