Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a0dec7

Browse files
committed
Require hostname to be set when using GSSAPI authentication. Without it,
the GSSAPI libraries crash.Noted by Zdenek Kotala
1 parent6c6ee75 commit2a0dec7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/interfaces/libpq/fe-auth.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* 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 $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -426,6 +426,12 @@ pg_GSS_startup(PGconn *conn)
426426
intmaxlen;
427427
gss_buffer_desctemp_gbuf;
428428

429+
if (!conn->pghost)
430+
{
431+
printfPQExpBuffer(&conn->errorMessage,libpq_gettext("host name must be specified\n"));
432+
returnSTATUS_ERROR;
433+
}
434+
429435
if (conn->gctx)
430436
{
431437
printfPQExpBuffer(&conn->errorMessage,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp