fallback to reauthentication if peer does not support CHILD_SA rekeying

This commit is contained in:
Martin Willi
2008-11-14 14:05:47 +00:00
parent dad8eceea3
commit 32ec3c1a8b
2 changed files with 27 additions and 2 deletions
+1 -2
View File
@@ -180,9 +180,8 @@ static status_t process_i(private_ike_rekey_t *this, message_t *message)
if (payload->get_type(payload) == NOTIFY)
{
notify_payload_t *notify = (notify_payload_t*)payload;
notify_type_t type = notify->get_notify_type(notify);
if (type == NO_ADDITIONAL_SAS)
if (notify->get_notify_type(notify) == NO_ADDITIONAL_SAS)
{
DBG1(DBG_IKE, "peer seems to not support IKE rekeying, "
"starting reauthentication");