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/[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]>
1 parent 7de82c2 commit c8bc346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)