]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
minor tweaks
authorAlan T. DeKok <aland@freeradius.org>
Thu, 24 Jul 2025 13:00:18 +0000 (15:00 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 24 Jul 2025 13:01:56 +0000 (15:01 +0200)
raddb/proxy.conf
src/main/realms.c
src/modules/rlm_dpsk/rlm_dpsk.c

index f6413a14f99e6d9aa239e8e9ec201d9b6e27b0df..40d246f5aa31f66677afe070b29a1720589ad28f 100644 (file)
@@ -665,7 +665,7 @@ home_server_pool my_auth_failover {
        #       to the same "second chosen" home server.  If that
        #       server is down the same key will map to the same
        #       "third chosen" home server, etc.
-
+       #
        #       This method is most useful for EAP, where all packets
        #       for the same authentication session should take the
        #       same route through a proxy fabric.  In the event of a
index 8c2dadc74ef892dfe41df7210384e36aa7fda5ac..d093433d45f403a4d88f543a7b0feb8b17c48428 100644 (file)
@@ -3138,7 +3138,6 @@ home_server_t *home_server_ldb(char const *realmname,
        case HOME_POOL_KEYED_BALANCE:
                if ((vp = fr_pair_find_by_num(request->config, PW_LOAD_BALANCE_KEY, 0, TAG_ANY)) != NULL) {
                        hash = fr_hash(vp->vp_strvalue, vp->vp_length);
-                       start = hash % pool->num_home_servers;
                        goto pick_matching_server;
                }
                /* FALL-THROUGH */
index 29f3d39a6f94308ca3317d5709f028c7411f91cb..77cf2331215d00562a20d83adc1db2c5ab6425ed 100644 (file)
@@ -772,8 +772,8 @@ make_digest:
                        MEM(entry->psk = talloc_memdup(entry, psk, psk_len));
                        entry->psk_len = psk_len;
 
-                       MEM(entry->identity = talloc_memdup(entry, psk_identity, strlen(psk_identity)));
                        entry->identity_len = strlen(psk_identity);
+                       MEM(entry->identity = talloc_memdup(entry, psk_identity, entry->identity_len));
 
                        /*
                         *      Cache it.