svn rev #22312: trunk/src/lib/krb5/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Tue May 5 12:39:54 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22312
Commit By: ghudson
Log Message:
Remove some unnecessary null checks in krb5_get_in_tkt_with_password.



Changed Files:
U   trunk/src/lib/krb5/krb/gic_pwd.c
Modified: trunk/src/lib/krb5/krb/gic_pwd.c
===================================================================
--- trunk/src/lib/krb5/krb/gic_pwd.c	2009-05-05 16:35:31 UTC (rev 22311)
+++ trunk/src/lib/krb5/krb/gic_pwd.c	2009-05-05 16:39:54 UTC (rev 22312)
@@ -520,10 +520,8 @@
 	if (retval) {
 	  return (retval);
 	}
-	if (creds->server)
-	    krb5_free_principal( context, creds->server);
-	if (creds->client)
-	    krb5_free_principal( context, creds->client);
+	krb5_free_principal( context, creds->server);
+	krb5_free_principal( context, creds->client);
 	creds->client = client_princ;
 	creds->server = server_princ;
 	/* store it in the ccache! */




More information about the cvs-krb5 mailing list