From: Alan T. DeKok Date: Sun, 4 Dec 2011 08:53:52 +0000 (+0100) Subject: Fixed bad strlen X-Git-Tag: release_3_0_0_beta0~450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c06cb147fe8114168150a2fdb81763c10736fdb;p=thirdparty%2Ffreeradius-server.git Fixed bad strlen --- diff --git a/src/main/xlat.c b/src/main/xlat.c index 32631480104..7d23128e7ab 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -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; }