1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

vfs_aio_pthread: don't crash without a pthreadpool

During 'samba-tool ntacl sysvolreset' and similar.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2023-05-02 15:15:16 +02:00 committed by Andrew Bartlett
parent 0e9f1eec5a
commit 3694f2ce62

View File

@ -468,6 +468,13 @@ static int aio_pthread_openat_fn(vfs_handle_struct *handle,
return -1; return -1;
} }
if (fsp->conn->sconn->pool == NULL) {
/*
* a threadpool is required for async support
*/
aio_allow_open = false;
}
if (fsp->conn->sconn->client->server_multi_channel_enabled) { if (fsp->conn->sconn->client->server_multi_channel_enabled) {
/* /*
* This module is not compatible with multi channel yet. * This module is not compatible with multi channel yet.