[BUG] EAP-pwd with EAP_PWD_PREP_MS
Brian Candler
b.candler at pobox.com
Sat Oct 8 00:12:42 PDT 2016
commit 551d2d8c5c3b16f25ffabc6417ea2288e3881600
Author: Brian Candler <b.candler at pobox.com>
Date: Sat Oct 8 08:09:07 2016 +0100
EAP-pwd: Fix the pre-processing field in the response when
EAP_PWD_PREP_MS is being used
Signed-off-by: Brian Candler <B.Candler at pobox.com>
diff --git a/src/eap_peer/eap_pwd.c b/src/eap_peer/eap_pwd.c
index d2bc981..662347b 100644
--- a/src/eap_peer/eap_pwd.c
+++ b/src/eap_peer/eap_pwd.c
@@ -345,7 +345,7 @@ eap_pwd_perform_id_exchange(struct eap_sm *sm,
struct eap_pwd_data *data,
wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_RAND_FUNC);
wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_PRF);
wpabuf_put_data(data->outbuf, id->token, sizeof(id->token));
- wpabuf_put_u8(data->outbuf, EAP_PWD_PREP_NONE);
+ wpabuf_put_u8(data->outbuf, id->prep);
wpabuf_put_data(data->outbuf, data->id_peer, data->id_peer_len);
eap_pwd_state(data, PWD_Commit_Req);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpasupp.diff.gz
Type: application/gzip
Size: 485 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20161008/14abc03f/attachment.gz>
More information about the Hostap
mailing list