COMP_zlib should always be declared, even if it is not functional.
authorBodo Möller <bodo@openssl.org>
Thu, 30 Nov 2000 23:41:58 +0000 (23:41 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 30 Nov 2000 23:41:58 +0000 (23:41 +0000)
Don't dump core in ssltest.

crypto/comp/comp.h
ssl/ssltest.c

index 0922609542da5b89903943007787621eea50504f..aee8fcdef9f9740cfae2d8bbf58fa3d7405a5456 100644 (file)
@@ -39,9 +39,7 @@ int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
        unsigned char *in, int ilen);
 COMP_METHOD *COMP_rle(void );
-#ifdef ZLIB
 COMP_METHOD *COMP_zlib(void );
-#endif
 
 /* BEGIN ERROR CODES */
 /* The following lines are auto generated by the script mkerr.pl. Any changes
index 1e685346ddba16f4e3ef20944de480554582f713..77ac362c814bd0b60129252bdfdd7202aca2b92a 100644 (file)
@@ -229,7 +229,7 @@ int main(int argc, char *argv[])
        int print_time = 0;
        clock_t s_time = 0, c_time = 0;
        int comp = 0;
-       COMP_METHOD *cm;
+       COMP_METHOD *cm = NULL;
 
        verbose = 0;
        debug = 0;