aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-04-28 23:38:40 (GMT)
committerJouni Malinen <j@w1.fi>2015-04-29 09:08:27 (GMT)
commitdea0d8ee295983358e300c84af006bfbd79c5500 (patch)
treea9693f7f2497a842dc0e3ec08d971a03dd357869 /src/radius
parent01a025937c67f0eca6021d94b8ec3b144f8b1730 (diff)
downloadhostap-dea0d8ee295983358e300c84af006bfbd79c5500.zip
hostap-dea0d8ee295983358e300c84af006bfbd79c5500.tar.gz
hostap-dea0d8ee295983358e300c84af006bfbd79c5500.tar.bz2
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>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radius/radius.c b/src/radius/radius.c
index 906d8c8..1ebfd11 100644
--- a/src/radius/radius.c
+++ b/src/radius/radius.c
@@ -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;
}