X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmeta.c;h=a3f7ef3cfa1f38c7fae38badbfcc11f28eb641a9;hb=a22041922f160667573e9a5ae3f4195e1668906a;hp=1bb634fdf2832f2271ff15f348f528d97c615af3;hpb=108b238915c5f58b3d94ab433dc5d04e064c2b11;p=tinc diff --git a/src/meta.c b/src/meta.c index 1bb634fd..a3f7ef3c 100644 --- a/src/meta.c +++ b/src/meta.c @@ -76,7 +76,7 @@ void broadcast_meta(connection_t *from, const char *buffer, int length) { } bool receive_meta(connection_t *c) { - size_t inlen; + int inlen; char inbuf[MAXBUFSIZE]; char *bufp = inbuf, *endp; @@ -117,7 +117,7 @@ bool receive_meta(connection_t *c) { bufp = endp; } else { size_t outlen = inlen; - ifdebug(META) logger(LOG_DEBUG, "Received encrypted %zu bytes", inlen); + ifdebug(META) logger(LOG_DEBUG, "Received encrypted %d bytes", inlen); evbuffer_expand(c->buffer->input, c->buffer->input->off + inlen); if(!cipher_decrypt(&c->incipher, bufp, inlen, c->buffer->input->buffer + c->buffer->input->off, &outlen, false) || inlen != outlen) {