Skip to content

Commit 3047fc6

Browse files
committed
use correct packet for channel binding. Closes #1990
1 parent fba1d6f commit 3047fc6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/modules/rlm_eap/libeap/eap_chbind.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,15 @@ chbind_packet_t *eap_chbind_vp2packet(TALLOC_CTX *ctx, VALUE_PAIR *vps)
280280
return packet;
281281
}
282282

283-
VALUE_PAIR *eap_chbind_packet2vp(REQUEST *request, chbind_packet_t *packet)
283+
VALUE_PAIR *eap_chbind_packet2vp(RADIUS_PACKET *packet, chbind_packet_t *chbind)
284284
{
285285
VALUE_PAIR *vp;
286286

287-
if (!packet) return NULL; /* don't produce garbage */
287+
if (!chbind) return NULL; /* don't produce garbage */
288288

289-
vp = fr_pair_afrom_num(request->packet, PW_UKERNA_CHBIND, VENDORPEC_UKERNA);
289+
vp = fr_pair_afrom_num(packet, PW_UKERNA_CHBIND, VENDORPEC_UKERNA);
290290
if (!vp) return NULL;
291-
fr_pair_value_memcpy(vp, (uint8_t *) packet, talloc_array_length((uint8_t *)packet));
291+
fr_pair_value_memcpy(vp, (uint8_t *) chbind, talloc_array_length((uint8_t *)chbind));
292292

293293
return vp;
294294
}

src/modules/rlm_eap/libeap/eap_chbind.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ typedef struct CHBIND_REQ {
5858
/* Channel binding function prototypes */
5959
PW_CODE chbind_process(REQUEST *request, CHBIND_REQ *chbind_req);
6060

61-
VALUE_PAIR *eap_chbind_packet2vp(REQUEST *request, chbind_packet_t *packet);
61+
VALUE_PAIR *eap_chbind_packet2vp(RADIUS_PACKET *packet, chbind_packet_t *chbind);
6262
chbind_packet_t *eap_chbind_vp2packet(TALLOC_CTX *ctx, VALUE_PAIR *vps);
6363

6464
#endif /*_EAP_CHBIND_H*/

src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ int eapttls_process(eap_handler_t *handler, tls_session_t *tls_session)
11831183
if (req->response) {
11841184
RDEBUG("sending chbind response");
11851185
fr_pair_add(&fake->reply->vps,
1186-
eap_chbind_packet2vp(fake, req->response));
1186+
eap_chbind_packet2vp(fake->reply, req->response));
11871187
} else {
11881188
RDEBUG("no chbind response");
11891189
}

0 commit comments

Comments
 (0)