raise an alert() if the RADIUS server is not responding
This commit is contained in:
parent
e85b83c737
commit
88957f54f2
|
@ -131,6 +131,8 @@ enum level_t {
|
|||
* Kind of alerts to raise.
|
||||
*/
|
||||
enum alert_t {
|
||||
/* a RADIUS server did not respond, no additional arguments */
|
||||
ALERT_RADIUS_NOT_RESPONDING,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -353,6 +353,7 @@ static radius_message_t* request(private_radius_client_t *this,
|
|||
}
|
||||
DBG1(DBG_CFG, "RADIUS server is not responding");
|
||||
put_socket(socket);
|
||||
charon->bus->alert(charon->bus, ALERT_RADIUS_NOT_RESPONDING);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue