Explorar el Código

Server: Minor code refactoring

Tal Aloni hace 5 años
padre
commit
5cdcda413e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      SMBLibrary/Server/SMBServer.cs

+ 2 - 1
SMBLibrary/Server/SMBServer.cs

@@ -402,7 +402,8 @@ namespace SMBLibrary.Server
                 Socket clientSocket = state.ClientSocket;
                 try
                 {
-                    clientSocket.Send(response.GetBytes());
+                    byte[] responseBytes = response.GetBytes();
+                    clientSocket.Send(responseBytes);
                 }
                 catch (SocketException ex)
                 {