Skip to content

Commit

Permalink
Fix: check uuid before passing to credentials_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and bjoernricks committed Oct 4, 2023
1 parent 242a970 commit 8206303
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -17464,6 +17464,10 @@ authenticate (credentials_t* credentials)
g_free (quoted_name);
g_free (quoted_method);

if (credentials->uuid == NULL)
/* Can happen if user is deleted while logged in to GSA. */
return 1;

if (credentials_setup (credentials))
{
free (credentials->uuid);
Expand Down

0 comments on commit 8206303

Please sign in to comment.