diff options
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
| -rw-r--r-- | src/backend/postmaster/postmaster.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index b0dfb6cdbe..feb3db6402 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.530 2007/07/01 18:28:41 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.531 2007/07/10 13:14:21 mha Exp $ * * NOTES * @@ -1727,6 +1727,13 @@ ConnCreate(int serverFd) RandomSalt(port->cryptSalt, port->md5Salt); } + /* + * Allocate GSSAPI specific state struct + */ +#ifdef ENABLE_GSS + port->gss = (pg_gssinfo *)calloc(1, sizeof(pg_gssinfo)); +#endif + return port; } @@ -1740,6 +1747,8 @@ ConnFree(Port *conn) #ifdef USE_SSL secure_close(conn); #endif + if (conn->gss) + free(conn->gss); free(conn); } |
