mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 22:15:46 +01:00
Use the right lengths.
Submitted by: Sascha Wildner MFC after: 2 weeks
This commit is contained in:
parent
81e6c8e706
commit
6f1ca3e41c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269098
@ -680,7 +680,7 @@ runtest(struct ieee80211com *ic, struct ciphertest *t)
|
||||
printf("FAIL: decap botch; data does not compare\n");
|
||||
printtest(t);
|
||||
cmpfail(mtod(m, const void *), m->m_pkthdr.len,
|
||||
t->plaintext, sizeof(t->plaintext));
|
||||
t->plaintext, t_plaintext_len);
|
||||
goto bad;
|
||||
}
|
||||
m_freem(m);
|
||||
|
@ -242,7 +242,7 @@ runtest(struct ieee80211com *ic, struct ciphertest *t)
|
||||
} else if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) {
|
||||
printf("FAIL: decap botch; data does not compare\n");
|
||||
cmpfail(mtod(m, const void *), m->m_pkthdr.len,
|
||||
t->plaintext, sizeof(t->plaintext));
|
||||
t->plaintext, t->plaintext_len);
|
||||
goto bad;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user