From b77fd86f2aa0218349a024ad5dca809610d85fe9 Mon Sep 17 00:00:00 2001 From: angt Date: Sat, 31 Oct 2015 22:37:17 +0100 Subject: [PATCH] Warn if decrypt_packet() fail --- glorytun.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glorytun.c b/glorytun.c index 18121e4..b7b6df1 100644 --- a/glorytun.c +++ b/glorytun.c @@ -667,8 +667,10 @@ int main (int argc, char **argv) if (ip_size<0 || (size_t)ip_size+16>size) break; - if (decrypt_packet(&ctx, tunw.buf, ip_size, &sock.recv)) + if (decrypt_packet(&ctx, tunw.buf, ip_size, &sock.recv)) { + printf("message could not be verified!\n"); goto restart; + } tunw.size = ip_size; }