From: Nick Porter Date: Wed, 17 Jul 2024 09:57:15 +0000 (+0100) Subject: Use HEXIFY to handle non-octet looking RADIUSD_VERSION X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9953a363b60e69f2db1924c964651cbe4164cdea;p=thirdparty%2Ffreeradius-server.git Use HEXIFY to handle non-octet looking RADIUSD_VERSION --- diff --git a/src/modules/rlm_eap/mem.c b/src/modules/rlm_eap/mem.c index 6be8ca4af7..394f2e6646 100644 --- a/src/modules/rlm_eap/mem.c +++ b/src/modules/rlm_eap/mem.c @@ -347,7 +347,7 @@ int eaplist_add(rlm_eap_t *inst, eap_handler_t *handler) handler->state[4] = handler->trips ^ handler->state[0]; handler->state[5] = handler->eap_id ^ handler->state[1]; handler->state[6] = handler->type ^ handler->state[2]; - handler->state[12] = handler->state[2] ^ (RADIUSD_VERSION & 0xff); + handler->state[12] = handler->state[2] ^ (HEXIFY(RADIUSD_VERSION) & 0xff); fr_pair_value_memcpy(state, handler->state, sizeof(handler->state));