Code:
DecryptLoginPacket(recvbuf).c_str();
Seems wrong to me
Sure that is isn't something like:
Code:
DecryptLoginPacket(recvbuf.c_str());
(Dont know the prototype so i can just guess what's wrong)
Is the packet complete in recvbuf ?
If not, check the DecryptLoginPacket function.