mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-21 08:45:54 +02:00
SMBServer: Bugfix: Do not send NotifyChange response if the session has been closed
This commit is contained in:
parent
a32e62d020
commit
056ab48a71
2 changed files with 33 additions and 34 deletions
|
@ -52,7 +52,6 @@ namespace SMBLibrary.Server.SMB1
|
||||||
{
|
{
|
||||||
connection.LogToServer(Severity.Verbose, "NotifyChange: Monitoring of '{0}{1}' completed. NTStatus: {2}. PID: {3}. MID: {4}.", openFile.ShareName, openFile.Path, status, asyncContext.PID, asyncContext.MID);
|
connection.LogToServer(Severity.Verbose, "NotifyChange: Monitoring of '{0}{1}' completed. NTStatus: {2}. PID: {3}. MID: {4}.", openFile.ShareName, openFile.Path, status, asyncContext.PID, asyncContext.MID);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
SMB1Header header = new SMB1Header();
|
SMB1Header header = new SMB1Header();
|
||||||
header.Command = CommandName.SMB_COM_NT_TRANSACT;
|
header.Command = CommandName.SMB_COM_NT_TRANSACT;
|
||||||
header.Status = status;
|
header.Status = status;
|
||||||
|
@ -82,3 +81,4 @@ namespace SMBLibrary.Server.SMB1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -53,8 +53,6 @@ namespace SMBLibrary.Server.SMB2
|
||||||
{
|
{
|
||||||
connection.LogToServer(Severity.Verbose, "NotifyChange: Monitoring of '{0}{1}' completed. NTStatus: {2}. AsyncID: {3}", openFile.ShareName, openFile.Path, status, asyncContext.AsyncID);
|
connection.LogToServer(Severity.Verbose, "NotifyChange: Monitoring of '{0}{1}' completed. NTStatus: {2}. AsyncID: {3}", openFile.ShareName, openFile.Path, status, asyncContext.AsyncID);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ChangeNotifyResponse response = new ChangeNotifyResponse();
|
ChangeNotifyResponse response = new ChangeNotifyResponse();
|
||||||
response.Header.Status = status;
|
response.Header.Status = status;
|
||||||
response.Header.IsAsync = true;
|
response.Header.IsAsync = true;
|
||||||
|
@ -68,3 +66,4 @@ namespace SMBLibrary.Server.SMB2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue