]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fixed bad strlen
authorAlan T. DeKok <aland@freeradius.org>
Sun, 4 Dec 2011 08:53:52 +0000 (09:53 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 4 Dec 2011 08:53:52 +0000 (09:53 +0100)
src/main/xlat.c

index 877436e5ce61b7cb8781c4395245b5e5ccf945a2..25ea050e88ab59aecf06c6612b3841f37a825382 100644 (file)
@@ -669,7 +669,7 @@ int xlat_register(const char *module, RAD_XLAT_FUNC func, void *instance)
        xlat_t  *c;
        xlat_t  my_xlat;
 
-       if ((module == NULL) || (strlen(module) == 0)) {
+       if (!module || !*module) {
                DEBUG("xlat_register: Invalid module name");
                return -1;
        }