dtls: Avoid bio_buffer assertion on shutdown.
authorJan Schmidt <jan@centricular.com>
Fri, 30 Oct 2020 11:49:22 +0000 (22:49 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 31 Oct 2020 01:47:06 +0000 (01:47 +0000)
commit760592a29cebbaec3a3d20fabe4bf0220d84b2ad
tree6f31f5f68a64c14c4c2501d7e466510c47ed61b3
parentaf90778314be73ca036d7ce716642303085c3ee7
dtls: Avoid bio_buffer assertion on shutdown.

On shutdown, a previous iteration of dtsl_connection_process()
might be incomplete and leave a partial bio_buffer behind.

If the DTLS connection is already marked closed, drop out
of dtls_connection_process early without asserting.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1741>
ext/dtls/gstdtlsconnection.c