From: Russell Bryant Date: Sat, 30 May 2009 03:42:46 +0000 (+0000) Subject: Fix a crash that occurred when MWI SMDI messages expired. X-Git-Tag: 1.4.26-rc2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e86b26f1a82d0b4f39030e2b7a05ed531a501591;p=thirdparty%2Fasterisk.git Fix a crash that occurred when MWI SMDI messages expired. (closes issue #14561) Reported by: cmoss28 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@198311 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_smdi.c b/res/res_smdi.c index 4c94277202..42aba55641 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -309,8 +309,10 @@ static inline void unref_msg(void *msg, enum smdi_message_type type) switch (type) { case SMDI_MWI: ASTOBJ_UNREF(mwi_msg, ast_smdi_mwi_message_destroy); + break; case SMDI_MD: ASTOBJ_UNREF(md_msg, ast_smdi_md_message_destroy); + break; } }