From: Ken Raeburn Date: Fri, 13 Apr 2007 09:37:14 +0000 (+0000) Subject: Remove redundant check for null pointer X-Git-Tag: krb5-1.7-alpha1~1148 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bbed1cfc404f4b78080b38297e7b2d27c0e314f0;p=krb5.git Remove redundant check for null pointer git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19462 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c index 77256482e..c25804b64 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal.c @@ -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)