1
0
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:
Arthur Zakirov
2017-11-02 14:35:31 +03:00
parent 304122dc64
commit b3ace0e871

View File

@@ -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",