From 185bbd23d58e56c702620c9e633ee75c197c9574 Mon Sep 17 00:00:00 2001 From: Gustavo Almeida Date: Mon, 27 Jul 2026 11:55:28 +0100 Subject: [PATCH] MT#55283 fix: add guard to avoid packet sent on shutdown on already dead streams closes #2147 closes #2146 Change-Id: Id94e5ed52dbfe0a8e86b5f90c425edd3832116ea (cherry picked from commit f99cffb24589a7af89504b6691d83accbda38d9b) (cherry picked from commit af1013b7ad5cf62da5ebcf4ea51d0d6563dfb0d7) --- daemon/dtls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/dtls.c b/daemon/dtls.c index ed0639597..3bc827602 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -646,6 +646,8 @@ static long dtls_bio_callback(BIO *bio, int oper, const char *argp, size_t len, struct stream_fd *sfd = d->sfd; if (!sfd) return ret; + if (!sfd->socket.family) + return ret; __DBG("dtls packet output: len %zu %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", len,