]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_musiconhold: moh general section is a class and issues warning
authorDaniel Journo <dan@keshercommunications.com>
Wed, 8 Mar 2017 20:29:16 +0000 (20:29 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 9 Mar 2017 16:36:35 +0000 (10:36 -0600)
* res_musiconhold.c: Ensure the general section is not treated as
a moh class.

ASTERISK-26353 #close

Change-Id: Ia3dbd11ea2b43ab3e6c820a9827811dd24bea82d

res/res_musiconhold.c

index 70bb04018295479ae2dc8f24ce548842fb4e9039..5ee1ac30ba14ab85b55a443075461ff857fa9f7d 100644 (file)
@@ -1748,6 +1748,7 @@ static int load_moh_classes(int reload)
                                        ast_log(LOG_WARNING, "Unknown option '%s' in [general] section of musiconhold.conf\n", var->name);
                                }
                        }
+                       continue;
                }
 
                if (!(class = moh_class_malloc())) {