mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
EAP-pwd server: 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>
This commit is contained in:
parent
6aa5d95dab
commit
58606fd987
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user