Updates from 1.0.0-stable branch.
[openssl.git] / ssl / d1_lib.c
index be4754144055cf6d38875eecb6c4d01012d22aae..712b880f919a7df00ac3c11a86c9ae4dedac5da7 100644 (file)
@@ -176,7 +176,10 @@ void dtls1_free(SSL *s)
 void dtls1_clear(SSL *s)
        {
        ssl3_clear(s);
-       s->version=DTLS1_VERSION;
+       if (s->options & SSL_OP_CISCO_ANYCONNECT)
+               s->version=DTLS1_BAD_VER;
+       else
+               s->version=DTLS1_VERSION;
        }
 
 /*