summaryrefslogtreecommitdiffstats
path: root/fuzz/server.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-09-18 04:17:18 +0200
committerPauli <paul.dale@oracle.com>2017-09-18 04:17:18 +0200
commitd2ef6e4ecc517de9d3d7f71180a6855f1f4d3243 (patch)
tree6ea2547e9b30eb66e3e061020ad5710577ab7db1 /fuzz/server.c
parentNull pointer used. (diff)
downloadopenssl-d2ef6e4ecc517de9d3d7f71180a6855f1f4d3243.tar.xz
openssl-d2ef6e4ecc517de9d3d7f71180a6855f1f4d3243.zip
Stack sorting safety
Use the defined typechecking stack method to sort the compression methods stack rather than using the generic function and apply type casts. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4382)
Diffstat (limited to 'fuzz/server.c')
-rw-r--r--fuzz/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/server.c b/fuzz/server.c
index e51ce10969..c31cf7ff2f 100644
--- a/fuzz/server.c
+++ b/fuzz/server.c
@@ -496,7 +496,7 @@ int FuzzerInitialize(int *argc, char ***argv)
idx = SSL_get_ex_data_X509_STORE_CTX_idx();
FuzzerSetRand();
comp_methods = SSL_COMP_get_compression_methods();
- OPENSSL_sk_sort((OPENSSL_STACK *)comp_methods);
+ sk_SSL_COMP_sort(comp_methods);
return 1;