[Issue 10251] New: wrong type passed to getsockname