From: Dr. Stephen Henson Date: Sat, 29 Dec 2012 23:37:56 +0000 (+0000) Subject: stop warning when compiling with no-comp X-Git-Tag: master-post-reformat~1493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a4c4a7d5cafaf7e0933d024d189f72b2e350b628;p=oweals%2Fopenssl.git stop warning when compiling with no-comp --- diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 75abebb22f..389f708b3e 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -940,9 +940,10 @@ int ssl3_get_client_hello(SSL *s) unsigned int cookie_len; long n; unsigned long id; - unsigned char *p,*d,*q; + unsigned char *p,*d; SSL_CIPHER *c; #ifndef OPENSSL_NO_COMP + unsigned char *q; SSL_COMP *comp=NULL; #endif STACK_OF(SSL_CIPHER) *ciphers=NULL; @@ -1178,7 +1179,9 @@ int ssl3_get_client_hello(SSL *s) SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO,SSL_R_LENGTH_MISMATCH); goto f_err; } +#ifndef OPENSSL_NO_COMP q=p; +#endif for (j=0; j