From dc4b197f0f7281da024a970a78892b1f09f0a8db Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sun, 11 Jan 2015 13:54:58 -0500 Subject: [PATCH] Remove cookie_len setting in dtls1_new. This should have been removed with its dtls1_clear cousin in 8c88153465ed4eb657ffc8dedd9d37f72ad3d87d. Change-Id: Ibf4ee67348f603285b26766568cbb92183b62cee Reviewed-on: https://boringssl-review.googlesource.com/2823 Reviewed-by: Adam Langley --- ssl/d1_lib.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index ce05b891..e4c2a2ba 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -134,10 +134,6 @@ int dtls1_new(SSL *s) { d1->sent_messages = pqueue_new(); d1->buffered_app_data.q = pqueue_new(); - if (s->server) { - d1->cookie_len = sizeof(s->d1->cookie); - } - if (!d1->unprocessed_rcds.q || !d1->processed_rcds.q || !d1->buffered_messages || !d1->sent_messages || !d1->buffered_app_data.q) {