parse the nodeType from the correct location in packet

This commit is contained in:
Stephen Birarda 2013-07-11 11:30:19 -07:00
parent 532b0b31f8
commit c80b5b6be4

View file

@ -93,7 +93,7 @@ int main(int argc, const char * argv[])
int numBytesSenderHeader = numBytesForPacketHeader(packetData);
nodeType = packetData[1];
nodeType = *(packetData + numBytesSenderHeader);
int numBytesSocket = unpackSocket(packetData + numBytesSenderHeader + sizeof(NODE_TYPE),
(sockaddr*) &nodeLocalAddress);