Merged revisions 198311 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sat, 30 May 2009 03:43:23 +0000 (03:43 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 30 May 2009 03:43:23 +0000 (03:43 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r198311 | russell | 2009-05-29 22:42:46 -0500 (Fri, 29 May 2009) | 5 lines

  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/trunk@198312 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_smdi.c

index 224dca9..d1d40f0 100644 (file)
@@ -306,8 +306,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;
        }
 }