summaryrefslogtreecommitdiffstats
path: root/plugins/imgssapi
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 14:13:43 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 14:13:43 +0000
commit96ff31f5bfb75741115bf8586a7691efaa7bd06c (patch)
treef9d53efeefe26ba34904d63bb03c0f40f15d6418 /plugins/imgssapi
parente802a7d965d5fcbc3cc848462744774e4d181a8f (diff)
downloadrsyslog-96ff31f5bfb75741115bf8586a7691efaa7bd06c.tar.gz
rsyslog-96ff31f5bfb75741115bf8586a7691efaa7bd06c.tar.xz
rsyslog-96ff31f5bfb75741115bf8586a7691efaa7bd06c.zip
applied some bugfixes to new code supplied by varmojfekoj - thanks!v3-12-1
Diffstat (limited to 'plugins/imgssapi')
-rw-r--r--plugins/imgssapi/imgssapi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/imgssapi/imgssapi.c b/plugins/imgssapi/imgssapi.c
index fcaae3b1..1c0dd79a 100644
--- a/plugins/imgssapi/imgssapi.c
+++ b/plugins/imgssapi/imgssapi.c
@@ -614,9 +614,11 @@ TCPSessGSSDeinit(void)
DEFiRet;
OM_uint32 maj_stat, min_stat;
- maj_stat = gss_release_cred(&min_stat, &gss_server_creds);
- if (maj_stat != GSS_S_COMPLETE)
- gssutil.display_status("releasing credentials", maj_stat, min_stat);
+ if (gss_server_creds != GSS_C_NO_CREDENTIAL) {
+ maj_stat = gss_release_cred(&min_stat, &gss_server_creds);
+ if (maj_stat != GSS_S_COMPLETE)
+ gssutil.display_status("releasing credentials", maj_stat, min_stat);
+ }
RETiRet;
}