Properly initialize src in ike_sa_t.is_any_path_valid().

This commit is contained in:
Tobias Brunner 2012-04-06 10:53:47 +02:00
parent 367e1e22b8
commit ae9ce83511
1 changed files with 1 additions and 1 deletions

View File

@ -1873,7 +1873,7 @@ static bool is_any_path_valid(private_ike_sa_t *this)
{
bool valid = FALSE;
enumerator_t *enumerator;
host_t *src, *addr;
host_t *src = NULL, *addr;
DBG1(DBG_IKE, "old path is not available anymore, try to find another");
enumerator = this->peer_addresses->create_enumerator(this->peer_addresses);