Skip to content

Commit

Permalink
Fix to response attribute length.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeja committed Nov 17, 2016
1 parent f0b91fa commit 9f6be86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private static byte[] ParseRequestMessage(byte[] data, IPAddress sender)
Array.Copy(data, 4, responsePacket, 4, 16);

// Add any response attributes
Array.Copy(responseAttributes.ToArray(), 0, responsePacket, 20, responseLength);
Array.Copy(responseAttributes.ToArray(), 0, responsePacket, 20, responseAttributes.Count);

// Authenticate the response
AuthenticateResponse(responsePacket, sender);
Expand Down

0 comments on commit 9f6be86

Please sign in to comment.