]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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>
Sun, 4 Dec 2011 09:04:49 +0000 (10:04 +0100)
src/modules/rlm_pap/rlm_pap.c

index 82a4911ebac9e4c7da8d50db36bec4392a62a00e..4aa3cb2295d4d07e0ea35eac7a46c80087a03738 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;