proposal: Compress arrays after removing transforms

This commit is contained in:
Tobias Brunner
2018-03-21 10:15:18 +01:00
parent a48f3d8939
commit 42a6b187f7
@@ -325,10 +325,12 @@ METHOD(proposal_t, strip_dh, void,
}
}
enumerator->destroy(enumerator);
array_compress(this->transforms);
if (keep == MODP_NONE || !found)
{
remove_type(this, DIFFIE_HELLMAN_GROUP);
array_compress(this->types);
}
}
@@ -761,6 +763,7 @@ static bool check_proposal(private_proposal_t *this)
}
array_compress(this->transforms);
array_compress(this->types);
return TRUE;
}