]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 247770 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Thu, 18 Feb 2010 21:25:00 +0000 (21:25 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 18 Feb 2010 21:25:00 +0000 (21:25 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r247770 | dvossel | 2010-02-18 15:23:48 -0600 (Thu, 18 Feb 2010) | 9 lines

  fixes confbridge crash when no timing module is loaded.

  (closes issue #16471)
  Reported by: kjotte
  Patches:
        M16471.diff uploaded by junky (license 177)
  Tested by: kjotte, junky
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@247776 65c4cc65-6c06-0410-ace0-fbb531ad65f3

bridges/bridge_softmix.c

index a980386608514747a7aa125bd3078230fdbfb05d..8142e534ee641b02475b60892369c9cdebc1473f 100644 (file)
@@ -99,6 +99,9 @@ static int softmix_bridge_create(struct ast_bridge *bridge)
 /*! \brief Function called when a bridge is destroyed */
 static int softmix_bridge_destroy(struct ast_bridge *bridge)
 {
+       if (!bridge->bridge_pvt) {
+               return -1;
+       }
        ast_timer_close((struct ast_timer *) bridge->bridge_pvt);
 
        return 0;