diff options
-rw-r--r-- | protocol.c | 2 | ||||
-rw-r--r-- | udp.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -48,7 +48,7 @@ int init_packet(struct mt_packet *packet, enum mt_ptype ptype, unsigned char *sr #if BYTE_ORDER == LITTLE_ENDIAN sessionkey = htons(sessionkey); #endif - memcpy(data + 15, &sessionkey, sizeof(sessionkey)); + memcpy(data + 16, &sessionkey, sizeof(sessionkey)); /* Client type: Mac Telnet */ memcpy(data + 14, &mt_mactelnet_clienttype, sizeof(mt_mactelnet_clienttype)); @@ -44,7 +44,7 @@ unsigned short udp_sum_calc(unsigned char *src_addr,unsigned char *dst_addr, uns /* Padding ? */ padd = (len % 2); if (padd){ - data[len + padd]=0; + data[len]=0; } /* header+data */ |