mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
RADIUS DAS: Verify that Error-Code attribute is added
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
75227f3ada
commit
236a52fd1f
@ -127,8 +127,11 @@ fail:
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
radius_msg_add_attr_int32(reply, RADIUS_ATTR_ERROR_CAUSE,
|
if (!radius_msg_add_attr_int32(reply, RADIUS_ATTR_ERROR_CAUSE,
|
||||||
error);
|
error)) {
|
||||||
|
radius_msg_free(reply);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return reply;
|
return reply;
|
||||||
@ -225,7 +228,12 @@ static void radius_das_receive(int sock, void *eloop_ctx, void *sock_ctx)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* Unsupported Service */
|
/* Unsupported Service */
|
||||||
radius_msg_add_attr_int32(reply, RADIUS_ATTR_ERROR_CAUSE, 405);
|
if (!radius_msg_add_attr_int32(reply, RADIUS_ATTR_ERROR_CAUSE,
|
||||||
|
405)) {
|
||||||
|
radius_msg_free(reply);
|
||||||
|
reply = NULL;
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wpa_printf(MSG_DEBUG, "DAS: Unexpected RADIUS code %u in "
|
wpa_printf(MSG_DEBUG, "DAS: Unexpected RADIUS code %u in "
|
||||||
|
Loading…
Reference in New Issue
Block a user