Delay the assignment of the out varible and assign it only if
returning NT_STATUS_OK, the caller does not use the returned
netr_SamInfo3 if the function does not return NT_STATUS_OK.
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
goto out;
}
- *info3 = talloc_steal(mem_ctx, my_info3);
-
E_md4hash(state->request->data.auth.pass, new_nt_pass);
dump_data_pw("new_nt_pass", new_nt_pass, NT_HASH_LEN);
goto out;
}
+ *info3 = talloc_move(mem_ctx, &my_info3);
+
result = NT_STATUS_OK;
goto out;
}