struct auth_serversupplied_info *server_info = NULL;
const char *guest_account = lp_guest_account();
const char *domain = lp_netbios_name();
- struct netr_SamInfo3 info3;
- TALLOC_CTX *tmp_ctx;
+ struct netr_SamInfo3 info3 = {};
+ TALLOC_CTX *tmp_ctx = talloc_stackframe();
NTSTATUS status;
- tmp_ctx = talloc_stackframe();
- if (tmp_ctx == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
-
- ZERO_STRUCT(info3);
-
status = get_guest_info3(tmp_ctx, &info3);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("get_guest_info3 failed with %s\n",