Skip to content

Commit

Permalink
Merge pull request #287 from updateing/service-offset
Browse files Browse the repository at this point in the history
修正服务名的偏移量
  • Loading branch information
hyrathb authored Dec 4, 2016
2 parents 4c5be48 + f22bf97 commit 2915434
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ void customizeServiceName(char* service)
memmove(pkt_identity, pkt2, sizeof(pkt2));
memmove(pkt_md5, pkt3, sizeof(pkt3));

memset(pkt_start + 360, 0, 8);
memset(pkt_identity + 343, 0, 8);
memset(pkt_start + 344, 0, 8);
memset(pkt_identity + 344, 0, 8);
memset(pkt_md5 + 360, 0, 8);

memmove(pkt_start + 360, service, serviceNameLen);
memmove(pkt_identity + 343, service, serviceNameLen);
memmove(pkt_start + 344, service, serviceNameLen);
memmove(pkt_identity + 344, service, serviceNameLen);
memmove(pkt_md5 + 360, service, serviceNameLen);
} else {
pkt_start = pkt1;
Expand Down

0 comments on commit 2915434

Please sign in to comment.