From: Bart Polot Date: Tue, 17 Jun 2014 12:13:36 +0000 (+0000) Subject: IMPORTANT FIX: use return value for integrity check X-Git-Tag: initial-import-from-subversion-38251~3724 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f297cfbbfabe7d2459b49746949fcf19b74d6cd3;p=oweals%2Fgnunet.git IMPORTANT FIX: use return value for integrity check --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index dd73be63e..4597a24a7 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -1944,6 +1944,12 @@ GCT_handle_encrypted (struct CadetTunnel *t, decrypted_size = t_decrypt_and_validate (t, cbuf, &msg[1], payload_size, msg->iv, &msg->hmac); + if (-1 == decrypted_size) + { + GNUNET_break_op (0); + return; + } + off = 0; while (off < decrypted_size) {