From: Lutz Jänicke <jaenicke@openssl.org>
Date: Mon, 13 Oct 2008 06:45:59 +0000 (+0000)
Subject: Remove the DTLS1_BAD_VER thing from 0.9.9-dev. It is present in 0.9.8
X-Git-Tag: OpenSSL_0_9_8k^2~235
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b8dfde2a362a4a4cb1f102674704972471385a87;p=oweals%2Fopenssl.git

Remove the DTLS1_BAD_VER thing from 0.9.9-dev. It is present in 0.9.8
but has been omitted from HEAD (0.9.9), see commit
  http://cvs.openssl.org/chngview?cn=16627
by appro.
---

diff --git a/ssl/dtls1.h b/ssl/dtls1.h
index 1438b25131..6548a98f03 100644
--- a/ssl/dtls1.h
+++ b/ssl/dtls1.h
@@ -68,7 +68,6 @@ extern "C" {
 #endif
 
 #define DTLS1_VERSION			0xFEFF
-#define DTLS1_BAD_VER			0x0100
 
 #if 0
 /* this alert description is not specified anywhere... */
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c
index 1d6760e515..561ba5cf25 100644
--- a/ssl/s3_pkt.c
+++ b/ssl/s3_pkt.c
@@ -829,8 +829,7 @@ int ssl3_write_pending(SSL *s, int type, const unsigned char *buf,
 			return(s->s3->wpend_ret);
 			}
 		else if (i <= 0) {
-			if (s->version == DTLS1_VERSION ||
-			    s->version == DTLS1_BAD_VER) {
+			if (s->version == DTLS1_VERSION) {
 				/* For DTLS, just drop it. That's kind of the wh
 ole
 				   point in using a datagram service */