From f4e760faf96cd49d0491981d48a7ced96564ee40 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 22 Oct 2008 14:26:05 +0200 Subject: Fix bug 5840: Segfault in "rpcclient lsaaddacctrights" --- source3/rpcclient/cmd_lsarpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index aa8662ce9d..6424f1b3af 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -789,7 +789,7 @@ static NTSTATUS cmd_lsa_add_acct_rights(struct rpc_pipe_client *cli, return NT_STATUS_NO_MEMORY; } - for (i=0; i Date: Wed, 22 Oct 2008 16:14:26 +0200 Subject: Fix a debug message in send_nt_replies() --- source3/smbd/nttrans.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 69ddcdae8d..b78c946388 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -93,9 +93,12 @@ void send_nt_replies(connection_struct *conn, + data_alignment_offset); if (useable_space < 0) { - DEBUG(0, ("send_nt_replies failed sanity useable_space " - "= %d!!!", useable_space)); - exit_server_cleanly("send_nt_replies: srv_send_smb failed."); + char *msg = talloc_asprintf( + talloc_tos(), + "send_nt_replies failed sanity useable_space = %d!!!", + useable_space); + DEBUG(0, ("%s\n", msg)); + exit_server_cleanly(msg); } while (params_to_send || data_to_send) { -- cgit