handling peer_match with higher priority tan ike_match to select correct config if...
authorMartin Willi <martin@strongswan.org>
Thu, 4 Dec 2008 10:00:03 +0000 (10:00 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 4 Dec 2008 10:00:03 +0000 (10:00 -0000)
src/charon/config/backend_manager.c

index 80ca928..e9d75ac 100644 (file)
@@ -252,7 +252,7 @@ static peer_cfg_t *get_peer_cfg(private_backend_manager_t *this, host_t *me,
                        DBG2(DBG_CFG, "  candidate \"%s\": %D...%D with prio %d.%d",
                                 current->get_name(current), my_cand, other_cand,
                                 match_peer, match_ike);
-                       if (match_peer >= best_peer && match_ike > best_ike)
+                       if (match_peer > best_peer && match_ike >= best_ike)
                        {
                                DESTROY_IF(found);
                                found = current;