You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-09-16 09:26:30 +02:00
Check if password provided by a user is empty
This commit is contained in:
@@ -1142,6 +1142,9 @@ pgut_connect_extended(const char *pghost, const char *pgport,
|
||||
if (interrupted)
|
||||
elog(ERROR, "interrupted");
|
||||
|
||||
if (password == NULL || password[0] == '\0')
|
||||
elog(ERROR, "no password supplied");
|
||||
|
||||
continue;
|
||||
}
|
||||
elog(ERROR, "could not connect to database %s: %s",
|
||||
|
Reference in New Issue
Block a user