Remove some unnecessary null checks in krb5_get_in_tkt_with_password
authorGreg Hudson <ghudson@mit.edu>
Tue, 5 May 2009 16:39:54 +0000 (16:39 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 5 May 2009 16:39:54 +0000 (16:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22312 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/gic_pwd.c

index 3a3f09d14bc23e70cc2667bb2acc0502f93af7f0..0109104df80f19bb4d0b7a181e984cc988ba8829 100644 (file)
@@ -520,10 +520,8 @@ krb5_get_in_tkt_with_password(krb5_context context, krb5_flags options,
        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! */