From: Alan T. DeKok Date: Wed, 31 Mar 2021 20:06:36 +0000 (-0400) Subject: let's define TCP-Session-Key X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe580c85daa871a7aa59f10acb72738905e9506c;p=thirdparty%2Ffreeradius-server.git let's define TCP-Session-Key --- diff --git a/share/dictionary.freeradius.internal b/share/dictionary.freeradius.internal index f702114ea7..baf5e08fec 100644 --- a/share/dictionary.freeradius.internal +++ b/share/dictionary.freeradius.internal @@ -286,6 +286,7 @@ ATTRIBUTE SSHA3-512-Password 1185 octets ATTRIBUTE MS-CHAP-Peer-Challenge 1192 octets ATTRIBUTE Home-Server-Name 1193 string +ATTRIBUTE TCP-Session-Key 1194 string # # Range: 1200-1279 diff --git a/src/main/tls_listen.c b/src/main/tls_listen.c index 87bfdc5b96..c5f78ee03d 100644 --- a/src/main/tls_listen.c +++ b/src/main/tls_listen.c @@ -583,11 +583,11 @@ int dual_tls_send(rad_listen_t *listener, REQUEST *request) * Save the key, if we haven't already done that. */ if (listener->send_coa && !listener->key) { - VALUE_PAIR *vp; + VALUE_PAIR *vp = NULL; vp = fr_pair_find_by_num(request->config, PW_TCP_SESSION_KEY, 0, TAG_ANY); if (vp) { - RDEBUG("Adding send CoA listener with key %s" vp->vp_strvalue); + RDEBUG("Adding send CoA listener with key %s", vp->vp_strvalue); // listener_store_bykey(request->listener, vp->vp_strvalue); } }