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

s3:smbd: only process fsctl_network_iface_info if multi channel is enabled

This effectively disables it for now.
Ultimately, we may want to remove this restriction.
Hence a separate patch.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Jan 26 10:40:44 CET 2016 on sn-devel-144
This commit is contained in:
Michael Adam 2016-01-25 12:01:44 +01:00
parent e8a051f58a
commit 6a24cccd80

View File

@ -655,6 +655,18 @@ struct tevent_req *smb2_ioctl_network_fs(uint32_t ctl_code,
return req;
break;
case FSCTL_QUERY_NETWORK_INTERFACE_INFO:
if (!state->smbreq->xconn->client->server_multi_channel_enabled)
{
if (IS_IPC(state->smbreq->conn)) {
status = NT_STATUS_FS_DRIVER_REQUIRED;
} else {
status = NT_STATUS_INVALID_DEVICE_REQUEST;
}
tevent_req_nterror(req, status);
return tevent_req_post(req, ev);
}
status = fsctl_network_iface_info(state, ev,
state->smbreq->xconn,
&state->in_input,