Skip to content

Commit

Permalink
Fixed bug in TcpSocket that causes library to crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmcbride committed Oct 15, 2014
1 parent d49314c commit 8894500
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions InSimDotNet/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.2.0")]
[assembly: AssemblyFileVersion("2.1.2.0")]
[assembly: AssemblyVersion("2.1.3.0")]
[assembly: AssemblyFileVersion("2.1.3.0")]
[assembly: NeutralResourcesLanguageAttribute("en")]
2 changes: 1 addition & 1 deletion InSimDotNet/TcpSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private void HandlePackets() {
int read = 0;

while (offset > 0 && offset >= buffer[read]) {
int size = Buffer.GetByte(buffer, 0);
int size = Buffer.GetByte(buffer, read);

// If size not multiple of four packet is corrupt.
if (size % 4 > 0) {
Expand Down
4 changes: 4 additions & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
- 2.1.3 (15th October 2014)

* Fixed bug introduced in previous release that could cause InSim.NET to crash.

- 2.1.2 (13th October 2014)

* Made PacketFactory public.
Expand Down

0 comments on commit 8894500

Please sign in to comment.