Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
infosvr: replace memcpy() with the intended memcmp() call
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed Jan 9, 2015
1 parent 03c3a46 commit 2d7a085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/src/router/infosvr/common.c
Expand Up @@ -224,7 +224,7 @@ char *processPacket(int sockfd, char *pdubuf)
phdr_ex = (IBOX_COMM_PKT_HDR_EX *)pdubuf;

// Check Mac Address
if (memcpy(phdr_ex->MacAddress, mac, 6)==0)
if (memcmp(phdr_ex->MacAddress, mac, 6)==0)
{
_dprintf("Mac Error %2x%2x%2x%2x%2x%2x\n",
(unsigned char)phdr_ex->MacAddress[0],
Expand Down

0 comments on commit 2d7a085

Please sign in to comment.