From 640ceb31c25542cd6402f4cf65e24c90e3751e5e Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Thu, 14 May 2015 03:37:29 +0900 Subject: [PATCH] refs #6: Remove debug-only memory initialization --- elements/ipsec/IPsecDatablocks.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elements/ipsec/IPsecDatablocks.hh b/elements/ipsec/IPsecDatablocks.hh index 9984a7e..202529d 100644 --- a/elements/ipsec/IPsecDatablocks.hh +++ b/elements/ipsec/IPsecDatablocks.hh @@ -197,7 +197,9 @@ public: unsigned global_pkt_offset = 0; assert(!has_pending_data); + #ifdef DEBUG memset(&block_info[0], 0xcc, sizeof(struct aes_block_info) * NBA_MAX_COMPBATCH_SIZE * (NBA_MAX_PACKET_SIZE / AES_BLOCK_SIZE)); + #endif for (unsigned p = 0; p < batch->count; ++p) { Packet *pkt = Packet::from_base(batch->packets[p]);