]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/proto.cpp
Merge branch 'stg-2.409' into stg-2.409-radius
[stg.git] / projects / sgauthstress / proto.cpp
index 3150002ddbd8dc0c163b54a993055d6313d47118..d1114f17aa105667e703ae1775870ea3f29a5b0f 100644 (file)
@@ -507,8 +507,8 @@ hdr.protoVer[0] = 0;
 hdr.protoVer[1] = 8; // IA_PROTO_VER
 
 unsigned char buffer[2048];
-memcpy(buffer, packet, length);
 memcpy(buffer, &hdr, sizeof(hdr));
+memcpy(buffer + sizeof(hdr), packet, length);
 
 size_t offset = sizeof(HDR_8);
 for (size_t i = 0; i < IA_LOGIN_LEN / 8; i++)