Add the ability for a client to send a KeyUpdate message
[openssl.git] / ssl / statem / statem_lib.c
index 72cb7f2cc92a5a1809aa17103432b66bfe40abfd..6261804129f822c3c4bbb1d33f9eec0aac32335c 100644 (file)
@@ -502,6 +502,8 @@ int tls_construct_key_update(SSL *s, WPACKET *pkt)
         goto err;
     }
 
+    s->key_update = SSL_KEY_UPDATE_NONE;
+
     return 1;
  err:
     ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_INTERNAL_ERROR);