From 190252522c2eb9ccab6a5e0ff8417acd1795ed07 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 20 Apr 2010 14:34:37 +0000 Subject: [PATCH] replying with ERROR instead of abort (e.g. on AmSipDialog::reply_error no non-existing request) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1812 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/sip/trans_layer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/sip/trans_layer.cpp b/core/sip/trans_layer.cpp index 01f6c7c1..6750ce0a 100644 --- a/core/sip/trans_layer.cpp +++ b/core/sip/trans_layer.cpp @@ -115,7 +115,11 @@ int trans_layer::send_reply(trans_ticket* tt, // - Accept assert(tt); - assert(tt->_bucket && tt->_t); + + if (!tt->_bucket || !tt->_t) { + ERROR("Invalid transaction ticket\n"); + return -1; + } trans_bucket* bucket = tt->_bucket; sip_trans* t = tt->_t;