]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-pwd peer: Make sure in_frag_pos is cleared to zero on allocation
authorJouni Malinen <j@w1.fi>
Sun, 3 May 2015 07:38:20 +0000 (10:38 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 3 May 2015 15:26:50 +0000 (18:26 +0300)
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>
src/eap_peer/eap_pwd.c

index e58b13a42f73deb6ae3f1fbb2077a6c1bfb7c77d..5a60b3f743b35747fcc5400f1fe0a2f5c8c0bf34 100644 (file)
@@ -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);
        }