diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index c1dfa5eb979..7a339d67ef4 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -1668,6 +1668,7 @@ connectDBStart(PGconn *conn) snprintf(portstr, sizeof(portstr), "%d", thisport); /* Use pg_getaddrinfo_all() to resolve the address */ + ret = 1; switch (ch->type) { case CHT_HOST_NAME: