]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
quick-mode: Promote selected DH group instead of stripping all others
authorTobias Brunner <tobias@strongswan.org>
Thu, 5 Sep 2019 15:23:57 +0000 (17:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 24 Oct 2019 15:36:37 +0000 (17:36 +0200)
Since only the first DH group is encoded for IKEv1 this should have the
same effect as removing all other groups.

src/libcharon/sa/ikev1/tasks/quick_mode.c

index edd179409ae53e3f88002a8db94cc8644fda6a50..00c9edd711cf8aa76a2f571d73095775be7884b8 100644 (file)
@@ -802,7 +802,7 @@ static linked_list_t *get_proposals(private_quick_mode_t *this,
                                proposal->destroy(proposal);
                                continue;
                        }
-                       proposal->strip_dh(proposal, group);
+                       proposal->promote_dh_group(proposal, group);
                }
                proposal->set_spi(proposal, this->spi_i);
        }