diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-07-29 23:27:56 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-31 09:34:21 +0200 |
commit | d73b7938bba32725b37f9bfa7ce3e23fbea50ce4 (patch) | |
tree | 5806983a3f90ac712d44849a5a63d27e59e0f959 /source3/smbd | |
parent | 13de233fc6a562387791281b3b0cc1bcbe56b9ef (diff) | |
download | samba-d73b7938bba32725b37f9bfa7ce3e23fbea50ce4.tar.gz samba-d73b7938bba32725b37f9bfa7ce3e23fbea50ce4.tar.bz2 samba-d73b7938bba32725b37f9bfa7ce3e23fbea50ce4.zip |
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
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |