From d73b7938bba32725b37f9bfa7ce3e23fbea50ce4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 29 Jul 2012 23:27:56 +0200 Subject: s3:smbd: use print_sockaddr() instead of client_socket_addr() We already have a server address in sockaddr_storage format. Also the name "client_socket" was very miss leading, as it returns the local address of the socket. metze --- source3/smbd/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index f09150d19c..f39c7d9b5d 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2504,7 +2504,7 @@ static NTSTATUS smbd_register_ips(struct smbd_server_connection *sconn, return NT_STATUS_NO_MEMORY; } - if (client_socket_addr(sconn->sock, tmp_addr, sizeof(tmp_addr)) == NULL) { + if (print_sockaddr(tmp_addr, sizeof(tmp_addr), &srv) == NULL) { return NT_STATUS_NO_MEMORY; } addr = talloc_strdup(cconn, tmp_addr); -- cgit