android: Ignore if peer is unreachable when reestablishing an SA
This commit is contained in:
@@ -414,8 +414,13 @@ METHOD(listener_t, alert, bool,
|
|||||||
CHARONSERVICE_PEER_AUTH_ERROR);
|
CHARONSERVICE_PEER_AUTH_ERROR);
|
||||||
break;
|
break;
|
||||||
case ALERT_PEER_INIT_UNREACHABLE:
|
case ALERT_PEER_INIT_UNREACHABLE:
|
||||||
charonservice->update_status(charonservice,
|
this->lock->read_lock(this->lock);
|
||||||
CHARONSERVICE_UNREACHABLE_ERROR);
|
if (this->tunfd < 0)
|
||||||
|
{ /* only handle this if we are not reestablishing the SA */
|
||||||
|
charonservice->update_status(charonservice,
|
||||||
|
CHARONSERVICE_UNREACHABLE_ERROR);
|
||||||
|
}
|
||||||
|
this->lock->unlock(this->lock);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user