From 66a02b877b54d61e9b681e4281a16ddb9cd55414 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 25 Mar 2014 06:47:37 -0700 Subject: [PATCH] TMXR: Avoid attempting to manage unit connect strings for never attached devices --- sim_tmxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_tmxr.c b/sim_tmxr.c index 9f34f976..58e70a4c 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -2024,7 +2024,7 @@ if (lp->serport) { /* close current serial connection * lp->destination = NULL; } tmxr_set_line_loopback (lp, FALSE); -if ((lp->mp->uptr) && ((lp->uptr == NULL) || (lp->uptr == lp->mp->uptr))) { +if ((lp->mp) && (lp->mp->uptr) && ((lp->uptr == NULL) || (lp->uptr == lp->mp->uptr))) { /* Revise the unit's connect string to reflect the current attachments */ lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp); /* No connections or listeners exist, then we're equivalent to being fully detached. We should reflect that */