From 599b9fe86eba932171bb4ec13347ed28ea5edebd Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 7 May 2009 14:19:43 +0200 Subject: s3-samr: Fix _samr_Connect5(). In error case it still needs to return empty info1. Guenther --- source3/rpc_server/srv_samr_nt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index a651cd21e2..677b593701 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -3219,12 +3219,13 @@ NTSTATUS _samr_Connect5(pipes_struct *p, c.in.access_mask = r->in.access_mask; c.out.connect_handle = r->out.connect_handle; + *r->out.level_out = 1; + status = _samr_Connect2(p, &c); if (!NT_STATUS_IS_OK(status)) { return status; } - *r->out.level_out = 1; r->out.info_out->info1 = info1; return NT_STATUS_OK; -- cgit