# 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
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 */
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.