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>
This commit is contained in:
parent
28a069a545
commit
6aa5d95dab
1 changed files with 1 additions and 0 deletions
|
@ -889,6 +889,7 @@ eap_pwd_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret,
|
||||||
"fragments!");
|
"fragments!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
data->in_frag_pos = 0;
|
||||||
pos += sizeof(u16);
|
pos += sizeof(u16);
|
||||||
len -= sizeof(u16);
|
len -= sizeof(u16);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue