svn rev #24701: trunk/src/lib/gssapi/mechglue/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Mar 11 12:53:18 EST 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=24701
Commit By: ghudson
Log Message:
ticket: 6813
Although it can't actually happen, make it more explicit that we won't
dereference a null mech in the cleanup handler of the mechglue's
gss_accept_sec_context.
Changed Files:
U trunk/src/lib/gssapi/mechglue/g_accept_sec_context.c
Modified: trunk/src/lib/gssapi/mechglue/g_accept_sec_context.c
===================================================================
--- trunk/src/lib/gssapi/mechglue/g_accept_sec_context.c 2011-03-11 17:47:21 UTC (rev 24700)
+++ trunk/src/lib/gssapi/mechglue/g_accept_sec_context.c 2011-03-11 17:53:18 UTC (rev 24701)
@@ -353,7 +353,8 @@
free(union_ctx_id->mech_type->elements);
free(union_ctx_id->mech_type);
}
- if (union_ctx_id->internal_ctx_id && mech->gss_delete_sec_context) {
+ if (union_ctx_id->internal_ctx_id && mech &&
+ mech->gss_delete_sec_context) {
mech->gss_delete_sec_context(&temp_minor_status,
&union_ctx_id->internal_ctx_id,
GSS_C_NO_BUFFER);
More information about the cvs-krb5
mailing list