Use the new binresvport_sa() function.

This function can deal with IPv4 and IPv6 sockets. It allows us to
correctly check the return values and react on errors.

Signed-off-by: Andreas Schneider <asn@samba.org>