]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix crash on VPB exception when no hardware is present.
authorJason Parker <jparker@digium.com>
Thu, 5 Nov 2009 19:14:25 +0000 (19:14 +0000)
committerJason Parker <jparker@digium.com>
Thu, 5 Nov 2009 19:14:25 +0000 (19:14 +0000)
(closes issue #14970)
Reported by: tzafrir
Patches:
      vpb_exception.diff uploaded by tzafrir (license 46)
Tested by: markwaters

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

channels/chan_vpb.cc

index 56467a6ce313c4de160d16efb5185a590c578d1f..71af41700b13a67ae054bf89676d2653dee1d324 100644 (file)
@@ -2718,7 +2718,7 @@ static enum ast_module_load_result load_module()
        int num_cards = 0;
        try {
                num_cards = vpb_get_num_cards();
-       } catch (VpbException e) {
+       } catch (std::exception e) {
                ast_log(LOG_ERROR, "No Voicetronix cards detected\n");
                return AST_MODULE_LOAD_DECLINE;
        }