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
+3
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",