Use the right lengths.
Submitted by: Sascha Wildner MFC after: 2 weeks
This commit is contained in:
parent
8f78a55b3b
commit
3e90546cc6
@ -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…
x
Reference in New Issue
Block a user