Fix DTLSv1_listen() sequence numbers
[oweals/openssl.git] / ssl / s3_pkt.c
index 6ece87d0628c4fe02c3e63805a65bf2b401e4202..39cdbaf8983c7b717218924b1a70c26168d478e7 100644 (file)
@@ -699,6 +699,7 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
         len >= 4 * (int)(max_send_fragment = s->max_send_fragment) &&
         s->compress == NULL && s->msg_callback == NULL &&
         SSL_USE_EXPLICIT_IV(s) &&
+        s->enc_write_ctx != NULL &&
         EVP_CIPHER_flags(s->enc_write_ctx->cipher) &
         EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK) {
         unsigned char aad[13];