From e00bd342da3b141b2fea3e93965e73800fdd7b6e Mon Sep 17 00:00:00 2001 From: Corey Minyard Date: Sun, 5 May 2024 14:00:52 -0500 Subject: [PATCH] conacc: Null the connection data if the connection fails The data was freed, but the NULL was missed. Signed-off-by: Corey Minyard --- lib/gensio_conacc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gensio_conacc.c b/lib/gensio_conacc.c index ca4c30f8..c99bd0be 100644 --- a/lib/gensio_conacc.c +++ b/lib/gensio_conacc.c @@ -734,6 +734,7 @@ conaccn_open_done(struct gensio *io, int err, void *open_data) base_gensio_server_open_done(nadata->acc, ndata->io, err); } conaccn_finish_free(ndata); + nadata->ndata = NULL; conaccna_deref_and_unlock(nadata); }