diff options
author | Matt Caswell <matt@openssl.org> | 2018-08-08 11:00:55 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-08-09 14:41:31 +0100 |
commit | 345bee916ac5ad28dd269afc24c27fe234c4045b (patch) | |
tree | 9a3b662e8506913e91b50aaf542a03bb95d60273 /fuzz/server.c | |
parent | 1049ae985e58f87e433b6b00f08853914147adac (diff) |
Fix no-comp
Commit 8839324 removed some NULL checks from the stack code. This caused
a no-comp build to fail in the client and server fuzzers.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6893)
Diffstat (limited to 'fuzz/server.c')
-rw-r--r-- | fuzz/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/server.c b/fuzz/server.c index 7f9f9fa020..db8c8b99ac 100644 --- a/fuzz/server.c +++ b/fuzz/server.c @@ -496,8 +496,8 @@ int FuzzerInitialize(int *argc, char ***argv) idx = SSL_get_ex_data_X509_STORE_CTX_idx(); FuzzerSetRand(); comp_methods = SSL_COMP_get_compression_methods(); - sk_SSL_COMP_sort(comp_methods); - + if (comp_methods != NULL) + sk_SSL_COMP_sort(comp_methods); return 1; } |