summaryrefslogtreecommitdiff
path: root/source4/smbd/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smbd/process.c')
-rw-r--r--source4/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smbd/process.c b/source4/smbd/process.c
index a4e67c7ff1..cf357ef547 100644
--- a/source4/smbd/process.c
+++ b/source4/smbd/process.c
@@ -738,7 +738,7 @@ void init_smbsession(struct event_context *ev, struct model_ops *model_ops, int
/* set an initial client name based on its IP address. This will be replaced with
the netbios name later if it gives us one */
sub_set_remote_machine(strdup(get_socket_addr(smb->mem_ctx, fd)));
- smb->socket.client_addr = talloc_strdup(smb->mem_ctx, get_socket_addr(smb->mem_ctx, fd));
+ smb->socket.client_addr = get_socket_addr(smb->mem_ctx, fd);
/* now initialise a few default values associated with this smb socket */
smb->negotiate.max_send = 0xFFFF;