diff --git a/CronosAgent.c b/CronosAgent.c index 822fe3e..69e7a39 100644 --- a/CronosAgent.c +++ b/CronosAgent.c @@ -553,11 +553,11 @@ int main(int argc, const char* argv[]) memcpy(incomingBuffer->data + length, serverPassword, passwordLength); SHA256(incomingBuffer->data, length + passwordLength, outgoingBuffer->data); - + outgoingBuffer->type = htole16(REWIND_TYPE_AUTHENTICATION); outgoingBuffer->number = htole32(++ sequenceNumbers[0]); outgoingBuffer->length = htole16(SHA256_DIGEST_LENGTH); - + sendto(uplinkHandle, outgoingBuffer, sizeof(struct RewindData) + SHA256_DIGEST_LENGTH, 0, serverAddress->ai_addr, serverAddress->ai_addrlen); continue; }