svn commit: samba r7991 - in branches/SAMBA_4_0/source/auth/kerberos: .

abartlet at samba.org abartlet at samba.org
Wed Jun 29 13:48:52 GMT 2005


Author: abartlet
Date: 2005-06-29 13:48:51 +0000 (Wed, 29 Jun 2005)
New Revision: 7991

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7991

Log:
I forgot to free the keyblock once we are done with it.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/auth/kerberos/kerberos_util.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/kerberos/kerberos_util.c
===================================================================
--- branches/SAMBA_4_0/source/auth/kerberos/kerberos_util.c	2005-06-29 07:55:16 UTC (rev 7990)
+++ branches/SAMBA_4_0/source/auth/kerberos/kerberos_util.c	2005-06-29 13:48:51 UTC (rev 7991)
@@ -174,6 +174,7 @@
 			ret = kerberos_kinit_keyblock_cc(smb_krb5_context->krb5_context, *ccache, 
 							 cli_credentials_get_principal(credentials, mem_ctx), 
 							 &keyblock, NULL, &kdc_time);
+			krb5_free_keyblock_contents(smb_krb5_context->krb5_context, &keyblock);
 		}
 	}
 



More information about the samba-cvs mailing list