diff options
-rw-r--r-- | src/libcharon/sa/tasks/main_mode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcharon/sa/tasks/main_mode.c b/src/libcharon/sa/tasks/main_mode.c index a88f7a419..4d4ca340a 100644 --- a/src/libcharon/sa/tasks/main_mode.c +++ b/src/libcharon/sa/tasks/main_mode.c @@ -376,6 +376,10 @@ METHOD(task_t, build_i, status_t, { u_int16_t group; + if (!this->keymat->create_hasher(this->keymat, this->proposal)) + { + return FAILED; + } if (!this->proposal->get_algorithm(this->proposal, DIFFIE_HELLMAN_GROUP, &group, NULL)) { @@ -470,6 +474,10 @@ METHOD(task_t, process_r, status_t, { u_int16_t group; + if (!this->keymat->create_hasher(this->keymat, this->proposal)) + { + return FAILED; + } if (!this->proposal->get_algorithm(this->proposal, DIFFIE_HELLMAN_GROUP, &group, NULL)) { |