X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;fp=src%2Fprotocol_auth.c;h=ddecbc62eb1f45170f69fa0581c435a45e7bf228;hp=46b38eb8185924bdb0636e05d7fcd6c57c9d71f1;hb=42ed8fd4cf3b3e527a38c03d713739fcdc6bf520;hpb=a85864809febde02687b52dc2931ac4505f57067 diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 46b38eb8..ddecbc62 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -195,6 +195,7 @@ bool send_metakey(connection_t *c) { return false; } + c->outbudget = (uint64_t)4 << EVP_CIPHER_key_length(c->outcipher); c->status.encryptout = true; } @@ -273,6 +274,7 @@ bool metakey_h(connection_t *c) { return false; } + c->inbudget = (uint64_t)4 << EVP_CIPHER_key_length(c->incipher); c->status.decryptin = true; } else { c->incipher = NULL;