Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
7f9de540
Commit
7f9de540
authored
Sep 14, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GSS API pointer checking.
Kris Jurka
parent
12afe7bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/backend/libpq/auth.c
src/backend/libpq/auth.c
+2
-2
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+5
-5
No files found.
src/backend/libpq/auth.c
View file @
7f9de540
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.15
5 2007/07/24 09:00:27 mha
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.15
6 2007/09/14 15:58:02 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -493,7 +493,7 @@ pg_GSS_recvauth(Port *port)
/*
* Release service principal credentials
*/
gss_release_cred
(
&
min_stat
,
port
->
gss
->
cred
);
gss_release_cred
(
&
min_stat
,
&
port
->
gss
->
cred
);
}
/*
...
...
src/backend/libpq/pqcomm.c
View file @
7f9de540
...
...
@@ -30,7 +30,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.19
5 2007/07/24 11:16:36 mha
Exp $
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.19
6 2007/09/14 15:58:02 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -178,11 +178,11 @@ pq_close(int code, Datum arg)
OM_uint32
min_s
;
/* Shutdown GSSAPI layer */
if
(
MyProcPort
->
gss
->
ctx
)
gss_delete_sec_context
(
&
min_s
,
MyProcPort
->
gss
->
ctx
,
NULL
);
if
(
MyProcPort
->
gss
->
ctx
!=
GSS_C_NO_CONTEXT
)
gss_delete_sec_context
(
&
min_s
,
&
MyProcPort
->
gss
->
ctx
,
NULL
);
if
(
MyProcPort
->
gss
->
cred
)
gss_release_cred
(
&
min_s
,
MyProcPort
->
gss
->
cred
);
if
(
MyProcPort
->
gss
->
cred
!=
GSS_C_NO_CREDENTIAL
)
gss_release_cred
(
&
min_s
,
&
MyProcPort
->
gss
->
cred
);
#endif
/* ENABLE_GSS */
/* GSS and SSPI share the port->gss struct */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment