Use the right lengths.

Submitted by:	Sascha Wildner
MFC after:	2 weeks
This commit is contained in:
Xin LI 2014-07-25 20:54:10 +00:00
parent 81e6c8e706
commit 6f1ca3e41c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269098
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;
}