Fix the propagation of the security settings from sendmsg to the rxrpc_call
struct.
Fixes: f3441d4125fc ("rxrpc: Copy client call parameters into rxrpc_call earlier")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: David S. Miller <davem@davemloft.net>
        call->tx_total_len      = p->tx_total_len;
        call->key               = key_get(cp->key);
        call->local             = rxrpc_get_local(cp->local, rxrpc_local_get_call);
+       call->security_level    = cp->security_level;
        if (p->kernel)
                __set_bit(RXRPC_CALL_KERNEL, &call->flags);
        if (cp->upgrade)
 
        call->conn      = rxrpc_get_connection(conn, rxrpc_conn_get_activate_call);
        call->cid       = conn->proto.cid | channel;
        call->call_id   = call_id;
-       call->security  = conn->security;
-       call->security_ix = conn->security_ix;
        call->dest_srx.srx_service = conn->service_id;
 
        trace_rxrpc_connect_call(call);
 
  */
 int rxrpc_init_client_call_security(struct rxrpc_call *call)
 {
-       const struct rxrpc_security *sec;
+       const struct rxrpc_security *sec = &rxrpc_no_security;
        struct rxrpc_key_token *token;
        struct key *key = call->key;
        int ret;
 
        if (!key)
-               return 0;
+               goto found;
 
        ret = key_validate(key);
        if (ret < 0)
 
 found:
        call->security = sec;
-       _leave(" = 0");
+       call->security_ix = sec->security_index;
        return 0;
 }