From 98bc3b1ac062cf48f6a35dca481c51e3ed857d3c Mon Sep 17 00:00:00 2001 From: paulc Date: Fri, 20 Aug 2004 12:30:15 +0000 Subject: [PATCH] Fixed crash when dropping an inexistent oss call. git-svn-id: http://voip.null.ro/svn/yate@26 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/osschan.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/osschan.cpp b/modules/osschan.cpp index 1ebee7f7..e23ed5dd 100644 --- a/modules/osschan.cpp +++ b/modules/osschan.cpp @@ -438,8 +438,10 @@ bool DropHandler::received(Message &msg) { String id(msg.getValue("id")); if (id.null() || id.startsWith("oss/")) { - Debug("OssDropper",DebugInfo,"Dropping all calls"); - s_chan->disconnect(); + if (s_chan) { + Debug("OssDropper",DebugInfo,"Dropping call"); + s_chan->disconnect(); + } return !id.null(); } return false;