Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/providers/krb5/krb5_delayed_online_authentication.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ static errno_t authenticate_stored_users(
iter = new_hash_iter_context(deferred_auth_ctx->user_table);
if (iter == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "new_hash_iter_context failed.\n");
hash_destroy(uid_table);
return EINVAL;
}

Expand Down Expand Up @@ -205,6 +206,7 @@ static errno_t authenticate_stored_users(
}

talloc_free(iter);
hash_destroy(uid_table);

return EOK;
}
Expand Down
8 changes: 7 additions & 1 deletion src/util/find_uid.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,13 @@ errno_t get_uid_table(TALLOC_CTX *mem_ctx, hash_table_t **table)
return ENOMEM;
}

return get_active_uid(*table, 0);
ret = get_active_uid(*table, 0);
if (ret != EOK) {
hash_destroy(*table);
*table = NULL;
}

return ret;
}

errno_t check_if_uid_is_active(uid_t uid, bool *result)
Expand Down
Loading