]> 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 09:04:50 +0000 (10:04 +0100)
src/main/xlat.c

index 32631480104aad56bd2d5f971654ed9e50c8045a..7d23128e7abd386d131130239fca68ddea605f44 100644 (file)
@@ -745,7 +745,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;
        }