goto setup_send;
}
+ /*
+ * Allow for over-ride of reply code.
+ */
+ vp = fr_pair_find_by_num(request->reply->vps, 0, FR_PACKET_TYPE, TAG_ANY);
+ if (vp) {
+ request->reply->code = vp->vp_uint32;
+ goto setup_send;
+ }
+
+
REDEBUG2("No Auth-Type available: rejecting the user.");
request->reply->code = FR_CODE_ACCESS_REJECT;
goto setup_send;
* Allow for over-ride of reply code.
*/
vp = fr_pair_find_by_num(request->reply->vps, 0, FR_PACKET_TYPE, TAG_ANY);
- if (vp) {
- if (vp->vp_uint32 == 256) {
- request->reply->code = 0;
- } else {
- request->reply->code = vp->vp_uint32;
- }
- }
+ if (vp) request->reply->code = vp->vp_uint32;
if (request->reply->code == FR_CODE_ACCESS_ACCEPT) {
if ((vp = fr_pair_find_by_num(request->packet->vps, 0, FR_MODULE_SUCCESS_MESSAGE, TAG_ANY)) != NULL){
CONF_SECTION *unlang;
fr_dict_enum_t const *dv;
fr_dict_attr_t const *da = NULL;
+ VALUE_PAIR *vp;
VERIFY_REQUEST(request);
break;
}
+ /*
+ * Allow for over-ride of reply code.
+ */
+ vp = fr_pair_find_by_num(request->reply->vps, 0, FR_PACKET_TYPE, TAG_ANY);
+ if (vp) request->reply->code = vp->vp_uint32;
+
if (!da) da = fr_dict_attr_by_num(NULL, 0, FR_PACKET_TYPE);
rad_assert(da != NULL);