summaryrefslogtreecommitdiffstats
path: root/ssl/d1_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-30 16:39:29 +0000
committerMatt Caswell <matt@openssl.org>2015-11-02 14:29:37 +0000
commit267b7789f83f7177c96a308a7b30ce4c234ceb52 (patch)
treefc4f4ee4e28e58c30d4543ec7a8d52fc27f1a0fd /ssl/d1_lib.c
parent9f07c405bb66d4cba03b00f3a3c1df8bee300120 (diff)
Remove a trivially true OPENSSL_assert
This OPENSSL_assert in (d)tls1_hearbeat is trivially always going to be true because it is testing the sum of values that have been set as constants just a few lines above and nothing has changed them. Therefore remove this. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r--ssl/d1_lib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c
index 733973b332..b865ad42b2 100644
--- a/ssl/d1_lib.c
+++ b/ssl/d1_lib.c
@@ -1023,12 +1023,6 @@ int dtls1_heartbeat(SSL *s)
return -1;
}
- /*
- * Check if padding is too long, payload and padding must not exceed 2^14
- * - 3 = 16381 bytes in total.
- */
- OPENSSL_assert(payload + padding <= 16381);
-
/*-
* Create HeartBeat message, we just use a sequence number
* as payload to distuingish different messages and add