mirror of
https://github.com/CPunch/Laika.git
synced 2025-10-04 15:20:07 +00:00
laikaS_endInPacket() bug fix
- sock->inCount was not properly set
This commit is contained in:
@@ -234,6 +234,9 @@ int laikaS_endInPacket(struct sLaika_socket *sock) {
|
||||
LAIKA_ERROR("Failed to decrypt packet!\n")
|
||||
}
|
||||
|
||||
/* decrypted message is smaller now */
|
||||
sock->inCount -= crypto_secretbox_MACBYTES;
|
||||
|
||||
/* remove nonce */
|
||||
laikaM_rmvarray(sock->inBuf, sock->inCount, sock->inStart, crypto_secretbox_NONCEBYTES);
|
||||
|
||||
|
Reference in New Issue
Block a user