From 33356d5d35aa64892cd249781b06deb5010aeb59 Mon Sep 17 00:00:00 2001 From: angt Date: Sun, 17 Jan 2016 09:40:56 +0100 Subject: [PATCH] Don't work too much --- src/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.c b/src/main.c index 13d6a66..1058152 100644 --- a/src/main.c +++ b/src/main.c @@ -1433,14 +1433,14 @@ int main (int argc, char **argv) } } + buffer_shift(&tun.write); + + if _0_(gt_decrypt(&ctx, &tun.write, &sock.read)) { + gt_log("%s: message could not be verified!\n", sockname); + goto restart; + } + while (1) { - buffer_shift(&tun.write); - - if _0_(gt_decrypt(&ctx, &tun.write, &sock.read)) { - gt_log("%s: message could not be verified!\n", sockname); - goto restart; - } - size_t size = buffer_read_size(&tun.write); if (!size)