The eap argument of send_response is never NULL
This commit is contained in:
@@ -266,8 +266,6 @@ static void send_response(private_tnc_pdp_t *this, radius_message_t *request,
|
||||
u_int16_t salt = 0;
|
||||
|
||||
response = radius_message_create(code);
|
||||
if (eap)
|
||||
{
|
||||
data = eap->get_data(eap);
|
||||
DBG3(DBG_CFG, "%N payload %B", eap_type_names, this->type, &data);
|
||||
|
||||
@@ -279,7 +277,7 @@ static void send_response(private_tnc_pdp_t *this, radius_message_t *request,
|
||||
data = chunk_skip(data, MAX_RADIUS_ATTRIBUTE_SIZE);
|
||||
}
|
||||
response->add(response, RAT_EAP_MESSAGE, data);
|
||||
}
|
||||
|
||||
if (group)
|
||||
{
|
||||
tunnel_type = RADIUS_TUNNEL_TYPE_ESP;
|
||||
|
||||
Reference in New Issue
Block a user