From a4c4a7d5cafaf7e0933d024d189f72b2e350b628 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 29 Dec 2012 23:37:56 +0000 Subject: [PATCH] stop warning when compiling with no-comp --- ssl/s3_srvr.c | 5 ++++- ssl/ssltest.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) 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