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

src/lib/krb5/krb/gic_keytab.c

index 923579487211358e89807d3587b11103ac3021d0..33db5527813706aea888f6956463e7b9be4e09ff 100644 (file)
@@ -202,10 +202,8 @@ krb5_get_in_tkt_with_keytab(krb5_context context, krb5_flags options,
     if (retval) {
        goto cleanup;
     }
-       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;