More strlen fixes
authorAlan T. DeKok <aland@freeradius.org>
Fri, 2 Dec 2011 16:53:11 +0000 (17:53 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 2 Dec 2011 16:53:11 +0000 (17:53 +0100)
src/modules/rlm_pap/rlm_pap.c

index 2021a02..3753bb6 100644 (file)
@@ -144,7 +144,7 @@ static int pap_instantiate(CONF_SECTION *conf, void **instance)
                pap_detach(inst);
                 return -1;
         }
-       if (inst->scheme == NULL || strlen(inst->scheme) == 0){
+       if (!inst->scheme || !*inst->scheme) {
                radlog(L_ERR, "rlm_pap: No scheme defined");
                pap_detach(inst);
                return -1;