*** pgsql/src/interfaces/libpq/fe-auth.c 2009/06/11 14:49:13 1.142 --- pgsql/src/interfaces/libpq/fe-auth.c 2010/03/08 10:01:24 1.142.2.1 *************** *** 7,13 **** * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.141 2009/03/22 18:06:35 tgl Exp $ * *------------------------------------------------------------------------- */ --- 7,13 ---- * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.142 2009/06/11 14:49:13 momjian Exp $ * *------------------------------------------------------------------------- */ *************** pg_GSS_startup(PGconn *conn) *** 426,431 **** --- 426,437 ---- int maxlen; gss_buffer_desc temp_gbuf; + if (!conn->pghost) + { + printfPQExpBuffer(&conn->errorMessage, libpq_gettext("host name must be specified\n")); + return STATUS_ERROR; + } + if (conn->gctx) { printfPQExpBuffer(&conn->errorMessage,