SMB fixes: IPC$ ShareMode=Public, capabilities=0, FILE_ID_BOTH_DIRECTORY_INFORMATION Reserved2 removed, NextEntryOffset=0 for last entry, debug logging

This commit is contained in:
Warren
2026-06-23 03:22:39 +08:00
parent bb796ec6b9
commit 8ef1406ed3
8 changed files with 55 additions and 19 deletions

View File

@@ -439,6 +439,13 @@ async fn dispatch_one(
}
let resp = handlers::dispatch_command(server, conn, &req_hdr, body_bytes).await;
debug!(
command = ?req_hdr.command,
status = resp.status,
body_len = resp.body.len(),
"SMB2 handler response"
);
// If the handler asked for a preauth snapshot (3.1.1), take it now.
if let Some(sid) = resp.take_preauth_snapshot_for_session {