Skip to content

Commit

Permalink
refs #6: Remove debug-only memory initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed May 13, 2015
1 parent 3441c13 commit 640ceb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elements/ipsec/IPsecDatablocks.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 640ceb3

Please sign in to comment.