Remove redundant check for null pointer
authorKen Raeburn <raeburn@mit.edu>
Fri, 13 Apr 2007 09:37:14 +0000 (09:37 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 13 Apr 2007 09:37:14 +0000 (09:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19462 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c

index 77256482eed2c26e6da82788069512d31bacc9b1..c25804b647741ffb12492b39e632fc8b3bb048ed 100644 (file)
@@ -194,7 +194,6 @@ krb5_ldap_iterate(context, match_expr, func, func_arg)
        for (ent=ldap_first_entry(ld, result); ent != NULL; ent=ldap_next_entry(ld, ent)) {
            if ((values=ldap_get_values(ld, ent, "krbprincipalname")) != NULL) {
                for (i=0; values[i] != NULL; ++i) {
-                   if (values[i])
                    if (krb5_ldap_parse_principal_name(values[i], &princ_name) != 0)
                        continue;
                    if (krb5_parse_name(context, princ_name, &principal) != 0)