From: Dr. Stephen Henson Date: Sun, 30 Dec 2012 01:12:19 +0000 (+0000) Subject: stop warning when compiling with no-comp X-Git-Tag: OpenSSL_1_0_2-beta1~474 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2e00f46b515ecf3c6378d7e7362e7c0044a204cc;p=oweals%2Fopenssl.git stop warning when compiling with no-comp --- diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index ed7d34f724..d8bce55f42 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -941,9 +941,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; @@ -1179,7 +1180,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