summaryrefslogtreecommitdiffstats
path: root/kernel/net/rxrpc/ar-security.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/rxrpc/ar-security.c')
-rw-r--r--kernel/net/rxrpc/ar-security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/net/rxrpc/ar-security.c b/kernel/net/rxrpc/ar-security.c
index 49b3cc31e..8334474eb 100644
--- a/kernel/net/rxrpc/ar-security.c
+++ b/kernel/net/rxrpc/ar-security.c
@@ -137,9 +137,9 @@ int rxrpc_init_client_conn_security(struct rxrpc_connection *conn)
if (ret < 0)
return ret;
- if (!key->payload.data)
+ token = key->payload.data[0];
+ if (!token)
return -EKEYREJECTED;
- token = key->payload.data;
sec = rxrpc_security_lookup(token->security_index);
if (!sec)