]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rad_getgid() returns <0 on error
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jun 2015 16:18:22 +0000 (12:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jun 2015 16:18:54 +0000 (12:18 -0400)
src/modules/rlm_opendirectory/rlm_opendirectory.c

index d76120d3dcf3e743ddddc2b7ef356a4f9ef6f0ef..5b6418d1c92d10c15f92619111b8eca0ad7d24ed 100644 (file)
@@ -361,15 +361,14 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authorize(UNUSED void *instance, REQUEST
        uuid_clear(guid_sacl);
 
        if (rad_getgid(request, &gid, kRadiusSACLName) < 0) {
+               RDEBUG("The SACL group \"%s\" does not exist on this system.", kRadiusSACLName);
+       } else {
                err = mbr_gid_to_uuid(gid, guid_sacl);
                if (err != 0) {
                        ERROR("rlm_opendirectory: The group \"%s\" does not have a GUID.", kRadiusSACLName);
                        return RLM_MODULE_FAIL;
                }
        }
-       else {
-               RDEBUG("The SACL group \"%s\" does not exist on this system.", kRadiusSACLName);
-       }
 
        /* resolve client access list */
        uuid_clear(guid_nasgroup);