From: Jouni Malinen Date: Sun, 3 May 2015 07:38:20 +0000 (+0300) Subject: EAP-pwd peer: Make sure in_frag_pos is cleared to zero on allocation X-Git-Tag: hostap_2_5~743 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa5d95dabe8a4cfd38d3cb661e0fde1c4f0e8e3;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/eap_peer/eap_pwd.c b/src/eap_peer/eap_pwd.c index e58b13a42..5a60b3f74 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); }