svn commit: lorikeet r359 - in trunk/heimdal/lib/krb5: .

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


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

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

Log:
Free the keyblock on failure, rather than returning it to the caller.

Andrew Bartlett

Modified:
   trunk/heimdal/lib/krb5/rd_req.c


Changeset:
Modified: trunk/heimdal/lib/krb5/rd_req.c
===================================================================
--- trunk/heimdal/lib/krb5/rd_req.c	2005-06-29 13:46:11 UTC (rev 358)
+++ trunk/heimdal/lib/krb5/rd_req.c	2005-06-29 13:46:48 UTC (rev 359)
@@ -616,6 +616,9 @@
     free_AP_REQ(&ap_req);
     if(service)
 	krb5_free_principal(context, service);
+    if (ret) 
+        krb5_free_keyblock(context, *keyblock);
+	    
     return ret;
 }
 



More information about the samba-cvs mailing list