Skip to content

Commit c8bc346

Browse files
dhowellschucklever
authored andcommitted
sunrpc: Fix RFC6803 encryption test
The usage_data[] array in rfc6803_encrypt_case() is uninitialised, so clear it as it may cause the tests to fail otherwise. Fixes: b958cff ("SUNRPC: Add encryption KUnit tests for the RFC 6803 encryption types") Link: https://lore.kernel.org/r/380323.1681314997@warthog.procyon.org.uk/ Signed-off-by: David Howells <dhowells@redhat.com> cc: Chuck Lever <chuck.lever@oracle.com> cc: Scott Mayhew <smayhew@redhat.com> cc: Herbert Xu <herbert@gondor.apana.org.au> cc: linux-nfs@vger.kernel.org cc: linux-crypto@vger.kernel.org Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 7de82c2 commit c8bc346

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/sunrpc/auth_gss/gss_krb5_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,7 @@ static void rfc6803_encrypt_case(struct kunit *test)
13271327
if (!gk5e)
13281328
kunit_skip(test, "Encryption type is not available");
13291329

1330+
memset(usage_data, 0, sizeof(usage_data));
13301331
usage.data[3] = param->constant;
13311332

13321333
Ke.len = gk5e->Ke_length;

0 commit comments

Comments
 (0)