No need to check for NULL, principal is allocated.
authorLove Hornquist Astrand <lha@h5l.org>
Thu, 30 Jul 2009 07:47:24 +0000 (09:47 +0200)
committerLove Hornquist Astrand <lha@h5l.org>
Thu, 30 Jul 2009 07:47:24 +0000 (09:47 +0200)
kuser/klist.c

index 6f2d9dec03fab74527e232a59d180384a3db9fae..b5145eda6940cb17b801f52502daee096bfcea3f 100644 (file)
@@ -537,8 +537,8 @@ list_caches(void)
            free(name);
        }
        krb5_cc_close(context, id);
-       if (principal)
-           krb5_free_principal(context, principal);
+
+       krb5_free_principal(context, principal);
     }
 
     krb5_cc_cache_end_seq_get(context, cursor);