From e0fc4cf985bd3caaa0c69cc9e2b0d5253540f8d3 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Mon, 28 Feb 2011 14:43:01 -0500 Subject: [PATCH] check for null client session before BIND_CONN --- daemon/nfs41_rpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/nfs41_rpc.c b/daemon/nfs41_rpc.c index ec205b5..7379a05 100644 --- a/daemon/nfs41_rpc.c +++ b/daemon/nfs41_rpc.c @@ -285,7 +285,8 @@ out_unlock: /* after releasing the rpc lock, send a BIND_CONN_TO_SESSION if * we need to associate the connection with the backchannel */ - if (status == NO_ERROR && rpc->needcb) { + if (status == NO_ERROR && rpc->needcb && + rpc->client && rpc->client->session) { status = nfs41_bind_conn_to_session(rpc, rpc->client->session->session_id, CDFC4_BACK_OR_BOTH); if (status)