From 039e9dc5e609f32b959b6120976e2c59534c659f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Aug 2003 20:19:30 +0000 Subject: - patch to fix a memory leak from metze - fix a couple of unicode string errors for ascii clients found by RAW- tests (This used to be commit 81c941ba8ae33567d79b4bb0bb5928f5f6077b76) --- source4/smbd/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/smbd/process.c') 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; -- cgit