summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/method_aes128_gcm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/method_aes128_gcm.c b/src/method_aes128_gcm.c
index 81edd7c..c6dafb4 100644
--- a/src/method_aes128_gcm.c
+++ b/src/method_aes128_gcm.c
@@ -262,10 +262,6 @@ static bool method_decrypt(fastd_context_t *ctx, fastd_peer_t *peer, fastd_metho
if (!ok || memcmp(&sig, &outblocks[0], sizeof(fastd_block128_t)) != 0) {
fastd_buffer_free(*out);
-
- /* restore input buffer */
- fastd_buffer_pull_head(ctx, &in, NONCEBYTES);
-
return false;
}