Skip to content

Commit

Permalink
[#453] pgagroal-admin: SegFault with -P
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperpedersen committed Jun 26, 2024
1 parent 79f5525 commit d2bd1cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ master_key(char* password, bool generate_pwd, int pwd_length)
struct stat st = {0};
bool do_free = true;

if (password != NULL)
{
do_free = false;
}

if (pgagroal_get_home_directory() == NULL)
{
char* username = pgagroal_get_user_name();
Expand Down

0 comments on commit d2bd1cf

Please sign in to comment.