]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check return code. CID #1445234
authorAlan T. DeKok <aland@freeradius.org>
Fri, 19 Jul 2019 13:41:25 +0000 (09:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 19 Jul 2019 13:41:25 +0000 (09:41 -0400)
src/modules/rlm_yubikey/rlm_yubikey.c

index 0e3dc4717fc306b07f7fc9659013f523cc29f9d5..ddfc23abf54158722dd1ae178db46941cab5dfe6 100644 (file)
@@ -341,7 +341,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authorize(void *instance, UNUSED void *t
                fr_pair_value_bstrncpy(vp, passcode, inst->id_len);
        }
 
-       module_section_type_set(request, attr_auth_type, inst->auth_type);
+       if (!module_section_type_set(request, attr_auth_type, inst->auth_type)) return RLM_MODULE_NOOP;
 
        return RLM_MODULE_OK;
 }