mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +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