diff options
author | Alan T. DeKok <aland@freeradius.org> | 2024-07-25 08:39:14 -0700 |
---|---|---|
committer | Robert Gingras <rgingras@mieweb.com> | 2025-03-31 11:48:37 -0400 |
commit | 15b5a25b3ce48cc9cf6aec7e9fbd736df833450a (patch) | |
tree | 99fb7b7e1b8cea9c77c50fb34234b12cfaf0d348 /src | |
parent | dde67d80623bdca4da8e76467b90754e34835ae3 (diff) | |
download | libpam-radius-auth-15b5a25b3ce48cc9cf6aec7e9fbd736df833450a.tar.gz libpam-radius-auth-15b5a25b3ce48cc9cf6aec7e9fbd736df833450a.zip |
set Message-Authenticator to zero each time we send a packet. Fixes #96
Diffstat (limited to 'src')
-rw-r--r-- | src/pam_radius_auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index 560b141..cc7bf2d 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -1130,6 +1130,7 @@ static int talk_radius(radius_conf_t * conf, AUTH_HDR * request, } if (request->code == PW_AUTHENTICATION_REQUEST) { + memset(conf->message_authenticator, 0, AUTH_VECTOR_LEN); hmac_md5(conf->message_authenticator, (uint8_t *) request, ntohs(request->length), (const uint8_t *) server->secret, strlen(server->secret)); |