From 8db8179f97549cb29cc1d4e4389dbe7fd8dcf964 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Thu, 6 Jan 2005 06:07:44 +0000
Subject: [PATCH] Fix DUNDi segfault

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 pbx/pbx_dundi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 6274aa89fd..f581af6943 100755
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -2926,6 +2926,7 @@ static void destroy_trans(struct dundi_transaction *trans, int fromtimeout)
 	destroy_packets(trans->packets);
 	destroy_packets(trans->lasttrans);
 	trans->packets = NULL;
+	trans->lasttrans = NULL;
 	if (trans->autokillid > -1)
 		ast_sched_del(sched, trans->autokillid);
 	trans->autokillid = -1;
-- 
GitLab