From d633c0103a3c1b92b76f5e5b469642a660527ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 2 Dec 2016 14:36:50 +0200 Subject: [PATCH] rtsp-auth: Don't remove digest-auth nonces that already/still have a client connected --- gst/rtsp-server/rtsp-auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-auth.c b/gst/rtsp-server/rtsp-auth.c index 5bca6f6f24..85758c4cb9 100644 --- a/gst/rtsp-server/rtsp-auth.c +++ b/gst/rtsp-server/rtsp-auth.c @@ -831,7 +831,8 @@ default_generate_authenticate_header (GstRTSPAuth * auth, GstRTSPContext * ctx) while (g_hash_table_iter_next (&iter, &key, &value)) { GstRTSPDigestNonce *tmp = value; - if (nonce->timestamp - tmp->timestamp >= 30 * G_USEC_PER_SEC) + if (!tmp->client + && nonce->timestamp - tmp->timestamp >= 30 * G_USEC_PER_SEC) g_hash_table_iter_remove (&iter); } auth->priv->last_nonce_check = nonce->timestamp;