mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 02:37:49 +02:00
Fixed infinite loop condition
This commit is contained in:
parent
b3df4dd01c
commit
36ca529f79
1 changed files with 3 additions and 1 deletions
|
@ -188,9 +188,11 @@ namespace SMBLibrary.Server
|
||||||
{
|
{
|
||||||
packet = receiveBuffer.DequeuePacket();
|
packet = receiveBuffer.DequeuePacket();
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
state.ClientSocket.Close();
|
state.ClientSocket.Close();
|
||||||
|
Log(Severity.Warning, "Rejected Invalid NetBIOS session packet: " + ex.ToString());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (packet != null)
|
if (packet != null)
|
||||||
|
|
Loading…
Add table
Reference in a new issue