mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
RADIUS: Fix a copy-paste error in variable name
MS-MPPE-Recv-Key generation in radius_msg_add_mppe_keys() used incorrect function argument (send_key_len; should be recv_key_len) when allocating a temporary buffer. Fix this by using the correct argument. The only caller of the function uses the same length for both send_key_len and recv_key_len, so this copy-paste error did not result in any difference in the behavior. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
01a025937c
commit
dea0d8ee29
@ -1225,7 +1225,7 @@ int radius_msg_add_mppe_keys(struct radius_msg *msg,
|
||||
}
|
||||
|
||||
/* MS-MPPE-Recv-Key */
|
||||
buf = os_malloc(hlen + send_key_len + 16);
|
||||
buf = os_malloc(hlen + recv_key_len + 16);
|
||||
if (buf == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user