[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 16/20] torture_packet: Use explicit_bzero
[Thread Prev] | [Thread Next]
- Subject: [PATCH 16/20] torture_packet: Use explicit_bzero
- From: Alberto Aguirre <albaguirre@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 28 Feb 2018 10:25:03 -0600
- To: libssh@xxxxxxxxxx
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
[PATCH 00/20] Add chacha20-poly1305 support | Alberto Aguirre <albaguirre@xxxxxxxxx> |