ike-init: Move creation of DH instance after INVALID_KE_PAYLOAD to build_i()
authorTobias Brunner <tobias@strongswan.org>
Fri, 2 Feb 2018 09:26:36 +0000 (10:26 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 09:20:05 +0000 (10:20 +0100)
commit18242f62c27bf829fd8ea8bbfc08e517fa9a2965
treef511463043866203811b04f34b6f2dd9bdaff7ca
parentd058fd3c32b78b3e5b3a885ed66273803c187565
ike-init: Move creation of DH instance after INVALID_KE_PAYLOAD to build_i()

This way we get proper error handling if the DH group the peer requested
is not actually supported for some reason (otherwise we'd just retry to
initiate with the configured group and get back another notify).
src/libcharon/sa/ikev2/tasks/ike_init.c