]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use HEXIFY to handle non-octet looking RADIUSD_VERSION
authorNick Porter <nick@portercomputing.co.uk>
Wed, 17 Jul 2024 09:57:15 +0000 (10:57 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 17 Jul 2024 09:57:15 +0000 (10:57 +0100)
src/modules/rlm_eap/mem.c

index 6be8ca4af78f039850e5eb24bc572b9dc512b288..394f2e6646be5f8cef829df328742a3aae1dec6f 100644 (file)
@@ -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));