|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.143 2010/01/02 16:58:11 momjian Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.144 2010/03/08 10:01:12 mha Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -426,6 +426,12 @@ pg_GSS_startup(PGconn *conn) |
426 | 426 | intmaxlen; |
427 | 427 | gss_buffer_desctemp_gbuf; |
428 | 428 |
|
| 429 | +if (!conn->pghost) |
| 430 | +{ |
| 431 | +printfPQExpBuffer(&conn->errorMessage,libpq_gettext("host name must be specified\n")); |
| 432 | +returnSTATUS_ERROR; |
| 433 | +} |
| 434 | + |
429 | 435 | if (conn->gctx) |
430 | 436 | { |
431 | 437 | printfPQExpBuffer(&conn->errorMessage, |
|