Move a comment where it belongs
authorVolker Lendecke <vl@samba.org>
Sat, 30 May 2009 16:24:14 +0000 (18:24 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 30 May 2009 16:27:13 +0000 (18:27 +0200)
source4/rpc_server/samr/dcesrv_samr.c

index ec60ac7a45378d28e2e1e40086ceac3862e9ba50..03acf97cab700cc817bad19bc187a7b8a3172771 100644 (file)
@@ -1223,6 +1223,11 @@ static NTSTATUS dcesrv_samr_CreateUser2(struct dcesrv_call_state *dce_call, TALL
                return NT_STATUS_INVALID_PARAMETER;
        }
 
+       /*
+        * Start a transaction, so we can query and do a subsequent atomic
+        * modify
+        */
+
        ret = ldb_transaction_start(d_state->sam_ctx);
        if (ret != 0) {
                DEBUG(0,("Failed to start a transaction for user creation: %s\n",
@@ -1292,9 +1297,7 @@ static NTSTATUS dcesrv_samr_CreateUser2(struct dcesrv_call_state *dce_call, TALL
 
        samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "sAMAccountName", account_name);
        samdb_msg_add_string(d_state->sam_ctx, mem_ctx, msg, "objectClass", obj_class);
-       
-       /* Start a transaction, so we can query and do a subsequent atomic modify */
-       
+
        /* create the user */
        ret = ldb_add(d_state->sam_ctx, msg);
        switch (ret) {