Remove some references to rlayer.rstate
[openssl.git] / ssl / record / rec_layer_d1.c
index 50762e0762972cb3b7c042a254e9a7439c093d9b..a621d089840af1248f0441ac91555c7f1f6884f9 100644 (file)
@@ -379,11 +379,8 @@ int dtls1_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf,
                 OPENSSL_cleanse(&(rr->data[rr->off]), n);
             rr->length -= n;
             rr->off += n;
-            if (rr->length == 0) {
-                /* TODO(RECLAYER): Do something with this? */
-                sc->rlayer.rstate = SSL_ST_READ_HEADER;
+            if (rr->length == 0)
                 ssl_release_record(sc, rr);
-            }
         }
 #ifndef OPENSSL_NO_SCTP
         /*