diff options
author | David Howells <[email protected]> | 2023-04-13 14:51:56 +0100 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2023-04-13 09:59:46 -0400 |
commit | c8bc34660628769f71e8b230144a2a4d86ab0f91 (patch) | |
tree | 5bf4d1f68a92a54616ff6f52e1b29cf9b284c73d | |
parent | 7de82c2f36fb26aa78440bbf0efcf360b691d98b (diff) |
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: b958cff6b27b ("SUNRPC: Add encryption KUnit tests for the RFC 6803 encryption types")
Link: https://lore.kernel.org/r/[email protected]/
Signed-off-by: David Howells <[email protected]>
cc: Chuck Lever <[email protected]>
cc: Scott Mayhew <[email protected]>
cc: Herbert Xu <[email protected]>
cc: [email protected]
cc: [email protected]
Signed-off-by: Chuck Lever <[email protected]>
-rw-r--r-- | net/sunrpc/auth_gss/gss_krb5_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/gss_krb5_test.c b/net/sunrpc/auth_gss/gss_krb5_test.c index ce0541e32fc9..aa6ec4e858aa 100644 --- a/net/sunrpc/auth_gss/gss_krb5_test.c +++ b/net/sunrpc/auth_gss/gss_krb5_test.c @@ -1327,6 +1327,7 @@ static void rfc6803_encrypt_case(struct kunit *test) if (!gk5e) kunit_skip(test, "Encryption type is not available"); + memset(usage_data, 0, sizeof(usage_data)); usage.data[3] = param->constant; Ke.len = gk5e->Ke_length; |