git:master:efe6966f: core: throw yyerror on invalid cfg var definition

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

git:master:efe6966f: core: throw yyerror on invalid cfg var definition

Daniel-Constantin Mierla-6
Module: kamailio
Branch: master
Commit: efe6966fa1691cbb762ec13aa11164b0989e3cb4
URL: https://github.com/kamailio/kamailio/commit/efe6966fa1691cbb762ec13aa11164b0989e3cb4

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
Date: 2017-06-06T11:19:38+02:00

core: throw yyerror on invalid cfg var definition

---

Modified: src/core/cfg.y

---

Diff:  https://github.com/kamailio/kamailio/commit/efe6966fa1691cbb762ec13aa11164b0989e3cb4.diff
Patch: https://github.com/kamailio/kamailio/commit/efe6966fa1691cbb762ec13aa11164b0989e3cb4.patch

---

diff --git a/src/core/cfg.y b/src/core/cfg.y
index 890f964cfb..59125a1659 100644
--- a/src/core/cfg.y
+++ b/src/core/cfg.y
@@ -1594,6 +1594,7 @@ cfg_var_idn: ID
  | NUMBER {
  yyerror("cfg var field name - use of number or reserved token not allowed: %s",
  yy_number_str);
+ YYERROR;
  }
  ;
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev