svn rev #22226: branches/krb5-1-7/src/lib/krb5/krb/
tlyu@MIT.EDU
tlyu at MIT.EDU
Tue Apr 14 17:07:37 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22226
Commit By: tlyu
Log Message:
ticket: 6423
version_fixed: 1.7
pull up r22092 from trunk
------------------------------------------------------------------------
r22092 | hartmans | 2009-03-16 12:49:59 -0400 (Mon, 16 Mar 2009) | 4 lines
Changed paths:
M /trunk/src/lib/krb5/krb/auth_con.c
ticket: 6423
Subject: krb5_auth_con_free should support freeing a null auth_context without segfault.
If the input auth_con is NULL, return success.
Changed Files:
U branches/krb5-1-7/src/lib/krb5/krb/auth_con.c
Modified: branches/krb5-1-7/src/lib/krb5/krb/auth_con.c
===================================================================
--- branches/krb5-1-7/src/lib/krb5/krb/auth_con.c 2009-04-14 21:07:34 UTC (rev 22225)
+++ branches/krb5-1-7/src/lib/krb5/krb/auth_con.c 2009-04-14 21:07:37 UTC (rev 22226)
@@ -44,6 +44,8 @@
krb5_error_code KRB5_CALLCONV
krb5_auth_con_free(krb5_context context, krb5_auth_context auth_context)
{
+ if (auth_context == NULL)
+ return 0;
if (auth_context->local_addr)
krb5_free_address(context, auth_context->local_addr);
if (auth_context->remote_addr)
More information about the cvs-krb5
mailing list