Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYSDB: Only process aliases if they are non-NULL (sssd-1-13) #87

Closed
wants to merge 1 commit into from

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Nov 24, 2016

This bug was found by downstream coverity check.

The aliases array is created by sysdb_get_sudo_user_info() which returns a NULL array if there are no aliases. We need to avoid dereferencing the array in that case.

@jhrozek jhrozek changed the title SYSDB: Only process aliases if they are non-NULL SYSDB: Only process aliases if they are non-NULL (sssd-1-13) Nov 24, 2016
@fidencio
Copy link
Contributor

Simple fix.
Acked-by: Fabiano Fidêncio fidencio@redhat.com

@jhrozek
Copy link
Contributor Author

jhrozek commented Nov 24, 2016

@jhrozek jhrozek closed this Nov 24, 2016
@jhrozek jhrozek added Pushed and removed Accepted labels Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants