summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-07 14:19:43 +0200
committerGünther Deschner <gd@samba.org>2009-05-07 14:33:33 +0200
commit599b9fe86eba932171bb4ec13347ed28ea5edebd (patch)
tree622e4835652827b0e35aedce0f7254cb8d013d9d
parentc52be9f6a0450d656671b4a756b3b5d56a88de24 (diff)
downloadsamba-599b9fe86eba932171bb4ec13347ed28ea5edebd.tar.gz
samba-599b9fe86eba932171bb4ec13347ed28ea5edebd.tar.bz2
samba-599b9fe86eba932171bb4ec13347ed28ea5edebd.zip
s3-samr: Fix _samr_Connect5(). In error case it still needs to return empty info1.
Guenther
-rw-r--r--source3/rpc_server/srv_samr_nt.c3
1 files changed, 2 insertions, 1 deletions
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;