/* try to pick the last client */
client = fsp->conn->sconn->client;
- xconn = smb_get_latest_client_connection(client);
+ xconn = smb_get_latest_intact_client_connection(client);
+ if (!xconn) {
+ DEBUG(1,("No valid channel available\n"));
+ return;
+ }
+
status = smb2srv_session_lookup_conn(xconn,
fsp->vuid,
return NT_STATUS_INVALID_PARAMETER_MIX;
}
+ xconn = smb_get_latest_intact_client_connection(client);
+ if (!xconn)
+ return NT_STATUS_CONNECTION_DISCONNECTED;
+
if (do_encryption) {
DATA_BLOB encryption_key = session->global->encryption_key;
}
}
- xconn = smb_get_latest_client_connection(client);
-
state->queue_entry.mem_ctx = state;
state->queue_entry.vector = state->vector;
state->queue_entry.count = ARRAY_SIZE(state->vector);