summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules.c2
-rw-r--r--plugins/imgssapi/imgssapi.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/modules.c b/modules.c
index 21141031..9082283d 100644
--- a/modules.c
+++ b/modules.c
@@ -461,7 +461,6 @@ Load(uchar *pModName)
}
pModInfo = GetNxt(pModInfo);
}
- free(pModNameDup);
/* now build our load module name */
if(*pModName == '/') {
@@ -485,6 +484,7 @@ Load(uchar *pModName)
/* ... so now add the extension */
strncat((char *) szPath, ".so", sizeof(szPath) - strlen((char*) szPath) - 1);
}
+ free(pModNameDup);
/* complete load path constructed, so ... GO! */
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;
}