From: Alan T. DeKok Date: Fri, 19 Jul 2019 13:41:25 +0000 (-0400) Subject: check return code. CID #1445234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f62cc19e27d08220ebec00932dbaa7a3f07fff05;p=thirdparty%2Ffreeradius-server.git check return code. CID #1445234 --- diff --git a/src/modules/rlm_yubikey/rlm_yubikey.c b/src/modules/rlm_yubikey/rlm_yubikey.c index 0e3dc4717fc..ddfc23abf54 100644 --- a/src/modules/rlm_yubikey/rlm_yubikey.c +++ b/src/modules/rlm_yubikey/rlm_yubikey.c @@ -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; }