MFC r269098:

Use the right lengths.

Submitted by:	Sascha Wildner
This commit is contained in:
delphij 2014-08-08 19:39:40 +00:00
parent 857302e30e
commit 380f15bde7
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}