Make null_compression const
authorMatt Caswell <matt@openssl.org>
Wed, 11 May 2016 10:50:12 +0000 (11:50 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 11 May 2016 12:43:41 +0000 (13:43 +0100)
Reviewed-by: Stephen Henson <steve@openssl.org>
ssl/statem/statem_srvr.c

index a6841c3b4b6fe4b41f7603571dd914a0d86f0933..4507357abf4b9d821657f0f3355a3db1db575ecb 100644 (file)
@@ -971,7 +971,7 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
     /* |cookie| will only be initialized for DTLS. */
     PACKET session_id, cipher_suites, compression, extensions, cookie;
     int is_v2_record;
-    static unsigned char null_compression = 0;
+    static const unsigned char null_compression = 0;
 
     is_v2_record = RECORD_LAYER_is_sslv2_record(&s->rlayer);