Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace destroy in the failed SA with DESTROY_IF #1488

Open
wants to merge 1 commit into
base: ikev2-qske-multi-ke
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libcharon/sa/ikev2/tasks/child_create.c
Expand Up @@ -2193,7 +2193,7 @@ static status_t delete_failed_sa(private_child_create_t *this)
this->public.task.build = _build_i_delete;
/* destroying it here allows the rekey task to differentiate between
* this and the multi-KE case */
this->child_sa->destroy(this->child_sa);
DESTROY_IF(this->child_sa);
this->child_sa = NULL;
return NEED_MORE;
}
Expand Down