From: Alan T. DeKok Date: Sun, 17 Feb 2013 22:25:24 +0000 (-0500) Subject: Don't check for array existence X-Git-Tag: release_2_2_1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4940d7889a8ca94c55a223f701f592b615de195;p=thirdparty%2Ffreeradius-server.git Don't check for array existence --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 1b7d1b53bda..7c62b133fa8 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -1032,7 +1032,7 @@ static int ldap_groupcmp(void *instance, REQUEST *req, DEBUG(" [%s] Entering ldap_groupcmp()", inst->xlat_name); - if (check->vp_strvalue == NULL || check->length == 0){ + if (check->length == 0){ DEBUG("rlm_ldap::ldap_groupcmp: Illegal group name"); return 1; } @@ -1368,7 +1368,7 @@ static int ldap_authorize(void *instance, REQUEST * request) /* * Check for valid input, zero length names not permitted */ - if (request->username->vp_strvalue == 0) { + if (request->username->length == 0) { DEBUG2("zero length username not permitted\n"); return RLM_MODULE_INVALID; }