From: Jouni Malinen Date: Tue, 28 Apr 2015 23:38:40 +0000 (+0300) Subject: RADIUS: Fix a copy-paste error in variable name X-Git-Tag: hostap_2_5~784 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dea0d8ee295983358e300c84af006bfbd79c5500;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/radius/radius.c b/src/radius/radius.c index 906d8c81d..1ebfd11f3 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; }