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

Fix: check uuid before passing to credentials_setup #2087

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Sep 27, 2023

What

Check if uuid is NULL before passing it to credentials_setup.

Why

An assertion failure was happening because credentials_setup expects uuid to exist, but uuid may be NULL if a user is deleted while logged in to GSA.

To reproduce

  1. gvmd --create-user m
  2. login to GSA
  3. gvmd --delete-user m
  4. click somewhere in GSA menu
  5. see assertion failure in gvmd output.

@github-actions
Copy link

Conventional Commits Report

Type Number
Bug Fixes 1

🚀 Conventional commits found.

@bjoernricks
Copy link
Contributor

Nice catch!

@mattmundell mattmundell marked this pull request as ready for review October 3, 2023 11:42
@mattmundell mattmundell requested a review from a team as a code owner October 3, 2023 11:42
@bjoernricks bjoernricks enabled auto-merge (rebase) October 4, 2023 08:01
@bjoernricks bjoernricks merged commit 8206303 into greenbone:main Oct 4, 2023
9 checks passed
@mattmundell mattmundell deleted the credentials-setup branch October 4, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants