xelerance / Openswan

Openswan
Other
852 stars 214 forks source link

github#541: Fix segfault when rekeying child SA with no parent #454

Closed mohicks closed 3 years ago

mohicks commented 3 years ago

Fixes a NULL pointer dereference when parent was NULL

letoams commented 3 years ago

On Thu, 3 Dec 2020, Martin Hicks wrote:

  https://github.com/xelerance/Openswan/pull/454

Note this shows an old bug in the find_phase1_state() params that don't take into account the IKEv2 established IKE SA states.

Likely all of include/pluto_constants.h needs a thorough update to fix those. Worse if openswan is still using parent states for ikev2 child states.

shrug