Fixed EAP-FAST server PAC-Opaque padding
0.6.4 broke this for some peer identity lengths. The padding was supposed to make sure that the length of PAC-Opaque is divisible by 8.
This commit is contained in:
parent
f40b972690
commit
1f21bc4cc3
2 changed files with 3 additions and 1 deletions
|
@ -685,7 +685,7 @@ static struct wpabuf * eap_fast_build_pac(struct eap_sm *sm,
|
|||
}
|
||||
|
||||
pac_len = pos - pac_buf;
|
||||
if (pac_len % 8) {
|
||||
while (pac_len % 8) {
|
||||
*pos++ = PAC_OPAQUE_TYPE_PAD;
|
||||
pac_len++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue