{
NTSTATUS status;
struct smbXsrv_client *client = NULL;
+ struct smbXsrv_connection *xconn = NULL;
struct smbXsrv_session *session = NULL;
struct timeval tv = timeval_current();
NTTIME now = timeval_to_nttime(&tv);
* to find the correct connection for a break message.
* Then we also need some retries if a channel gets disconnected.
*/
+
+ /* try to pick the last client */
client = fsp->conn->sconn->client;
+ xconn = smb_get_latest_client_connection(client);
- status = smb2srv_session_lookup_conn(client->connections,
+ status = smb2srv_session_lookup_conn(xconn,
fsp->vuid,
now,
&session);
}
}
- // TODO: which channel should be used???
- xconn = client->connections;
+ xconn = smb_get_latest_client_connection(client);
state->queue_entry.mem_ctx = state;
state->queue_entry.vector = state->vector;