[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 16/20] torture_packet: Use explicit_bzero


Signed-off-by: Alberto Aguirre <albaguirre@xxxxxxxxx>
---
 tests/unittests/torture_packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unittests/torture_packet.c b/tests/unittests/torture_packet.c
index 6d02ddcf..0e7d3f1e 100644
--- a/tests/unittests/torture_packet.c
+++ b/tests/unittests/torture_packet.c
@@ -103,7 +103,7 @@ static void torture_packet(const char *cipher,
     assert_int_equal(rc, encrypted_packet_len);
 
     ssh_packet_set_callbacks(session, &cb);
-    BURN_BUFFER(response, sizeof(response));
+    explicit_bzero(response, sizeof(response));
     rc = ssh_packet_socket_callback(buffer, encrypted_packet_len, session);
     assert_int_not_equal(rc, SSH_ERROR);
     if(payload_len > 0){
-- 
2.14.1


References:
[PATCH 00/20] Add chacha20-poly1305 supportAlberto Aguirre <albaguirre@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org