aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_pwd.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-05-03 07:38:20 (GMT)
committerJouni Malinen <j@w1.fi>2015-05-03 15:26:50 (GMT)
commit6aa5d95dabe8a4cfd38d3cb661e0fde1c4f0e8e3 (patch)
tree9d3e55217fa9783ff215462bbe937fd81458fc66 /src/eap_peer/eap_pwd.c
parent28a069a545b06b99eb55ad53f63f2c99e65a98f6 (diff)
downloadhostap-6aa5d95dabe8a4cfd38d3cb661e0fde1c4f0e8e3.zip
hostap-6aa5d95dabe8a4cfd38d3cb661e0fde1c4f0e8e3.tar.gz
hostap-6aa5d95dabe8a4cfd38d3cb661e0fde1c4f0e8e3.tar.bz2
EAP-pwd peer: Make sure in_frag_pos is cleared to zero on allocation
The cleanup code will handle this, but it is more robust to make sure this is cleared to zero when allocating a new buffer. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_peer/eap_pwd.c')
-rw-r--r--src/eap_peer/eap_pwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eap_peer/eap_pwd.c b/src/eap_peer/eap_pwd.c
index e58b13a..5a60b3f 100644
--- a/src/eap_peer/eap_pwd.c
+++ b/src/eap_peer/eap_pwd.c
@@ -889,6 +889,7 @@ eap_pwd_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret,
"fragments!");
return NULL;
}
+ data->in_frag_pos = 0;
pos += sizeof(u16);
len -= sizeof(u16);
}