commit | 75ff74bc3d71a6d55583e9d27ca547fdb96d698c | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 21 15:34:34 2017 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 21 15:34:34 2017 +0100 |
tree | 2d62ed0ae918c3e260ad0e8197172c0b0320e12e | |
parent | 27252692b07bce6263b7f7a75324a64152200849 [diff] |
test BUGFIX wrong dereference
diff --git a/tests/test_server_thread.c b/tests/test_server_thread.c index 5532c08..92a998d 100644 --- a/tests/test_server_thread.c +++ b/tests/test_server_thread.c
@@ -386,7 +386,7 @@ *cert_data_count = 1; return 0; } else if (!strcmp(name, "client_cert_list")) { - *cert_paths = malloc(sizeof *cert_paths); + *cert_paths = malloc(sizeof **cert_paths); (*cert_paths)[0] = strdup(TESTS_DIR"/data/client.crt"); *cert_path_count = 1; return 0;