mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
test: initialize capture structure before freeing
ASTERISK-30232 #close Change-Id: I2603e2cef8f93f6b0a6ef39f7eac744251bb3902
This commit is contained in:
committed by
Friendly Automation
parent
bde816ab54
commit
a15fffa57e
@@ -105,6 +105,8 @@ AST_TEST_DEFINE(crypto_rsa_encrypt)
|
||||
|
||||
ast_test_status_update(test, "Executing RSA encryption test\n");
|
||||
|
||||
ast_test_capture_init(&cap);
|
||||
|
||||
if (!ast_check_command_in_path(command)) {
|
||||
ast_test_status_update(test, "couldn't find %s\n", command);
|
||||
return res;
|
||||
@@ -190,6 +192,8 @@ AST_TEST_DEFINE(crypto_rsa_decrypt)
|
||||
|
||||
ast_test_status_update(test, "Executing RSA decryption test\n");
|
||||
|
||||
ast_test_capture_init(&cap);
|
||||
|
||||
if (!ast_check_command_in_path(command)) {
|
||||
ast_test_status_update(test, "couldn't find %s\n", command);
|
||||
return res;
|
||||
@@ -285,6 +289,8 @@ AST_TEST_DEFINE(crypto_sign)
|
||||
|
||||
ast_test_status_update(test, "Executing RSA signing test\n");
|
||||
|
||||
ast_test_capture_init(&cap);
|
||||
|
||||
if (!ast_check_command_in_path(command)) {
|
||||
ast_test_status_update(test, "couldn't find %s\n", command);
|
||||
return res;
|
||||
@@ -396,6 +402,8 @@ AST_TEST_DEFINE(crypto_verify)
|
||||
|
||||
ast_test_status_update(test, "Executing RSA signature verification test\n");
|
||||
|
||||
ast_test_capture_init(&cap);
|
||||
|
||||
if (!ast_check_command_in_path(command)) {
|
||||
ast_test_status_update(test, "couldn't find %s\n", command);
|
||||
return res;
|
||||
@@ -491,6 +499,8 @@ AST_TEST_DEFINE(crypto_aes_encrypt)
|
||||
|
||||
ast_test_status_update(test, "Executing AES-ECB encryption test\n");
|
||||
|
||||
ast_test_capture_init(&cap);
|
||||
|
||||
if (!ast_check_command_in_path(command)) {
|
||||
ast_test_status_update(test, "couldn't find %s\n", command);
|
||||
return res;
|
||||
@@ -565,6 +575,8 @@ AST_TEST_DEFINE(crypto_aes_decrypt)
|
||||
|
||||
ast_test_status_update(test, "Executing AES-ECB decryption test\n");
|
||||
|
||||
ast_test_capture_init(&cap);
|
||||
|
||||
if (!ast_check_command_in_path(command)) {
|
||||
ast_test_status_update(test, "couldn't find %s\n", command);
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user