ikev1: Skip unusable IPComp proposals

Fixes #661.
This commit is contained in:
Tobias Brunner
2014-09-12 13:56:06 +02:00
parent 84337ac8d0
commit 2f7fef569b
+1 -1
View File
@@ -369,7 +369,7 @@ METHOD(sa_payload_t, get_ipcomp_proposals, linked_list_t*,
}
if (proposal_number != current_proposal)
{ /* start of a new proposal */
if (espah && ipcomp)
if (espah && ipcomp && ipcomp->get_cpi(ipcomp, NULL))
{ /* previous proposal is valid */
break;
}