MFC r269098:
Use the right lengths. Submitted by: Sascha Wildner
This commit is contained in:
parent
857302e30e
commit
380f15bde7
@ -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