diff options
author | delphij <delphij@FreeBSD.org> | 2014-08-08 19:39:40 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-08-08 19:39:40 +0000 |
commit | 380f15bde7517b2fda94d745393b53f13e9dfef9 (patch) | |
tree | 4dc0980a1ca229f0b83469adb8b411a00e6d5c7d /tools/regression | |
parent | 857302e30e1e061c7af202584878ad7a12aa8d94 (diff) | |
download | FreeBSD-src-380f15bde7517b2fda94d745393b53f13e9dfef9.zip FreeBSD-src-380f15bde7517b2fda94d745393b53f13e9dfef9.tar.gz |
MFC r269098:
Use the right lengths.
Submitted by: Sascha Wildner
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/net80211/ccmp/test_ccmp.c | 2 | ||||
-rw-r--r-- | tools/regression/net80211/wep/test_wep.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/net80211/ccmp/test_ccmp.c b/tools/regression/net80211/ccmp/test_ccmp.c index d78be95..058e728 100644 --- a/tools/regression/net80211/ccmp/test_ccmp.c +++ b/tools/regression/net80211/ccmp/test_ccmp.c @@ -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); diff --git a/tools/regression/net80211/wep/test_wep.c b/tools/regression/net80211/wep/test_wep.c index b498195..ba6cd46 100644 --- a/tools/regression/net80211/wep/test_wep.c +++ b/tools/regression/net80211/wep/test_wep.c @@ -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; } |