]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-pwd server: Make sure in_frag_pos is cleared to zero on allocation
authorJouni Malinen <j@w1.fi>
Sun, 3 May 2015 07:39:28 +0000 (10:39 +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_server/eap_server_pwd.c

index 2bfc3c27647d026c78b2fa7805993ca251a9b0aa..cb83ff7305bd0644656d421261ba3a2ea40671df 100644 (file)
@@ -963,6 +963,7 @@ static void eap_pwd_process(struct eap_sm *sm, void *priv,
                                   "buffer fragments!");
                        return;
                }
+               data->in_frag_pos = 0;
                pos += sizeof(u16);
                len -= sizeof(u16);
        }