Module: sip-router
Branch: master
Commit: 740d407be4e35ee945658365ae38a1bba30fafc7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=740d407…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Feb 5 09:52:19 2014 +0100
core: fix condition on script callback number done inside EXTRA_DEBUG
- reported by Seudin Kasumovic, FS#388
---
script_cb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/script_cb.c b/script_cb.c
index fe17819..b8a053b 100644
--- a/script_cb.c
+++ b/script_cb.c
@@ -162,8 +162,8 @@ int exec_pre_script_cb( struct sip_msg *msg, enum script_cb_type
type)
unsigned int flags;
#ifdef EXTRA_DEBUG
- if (type >= SCRIPT_CB_NUM) {
- LOG(L_BUG, "exec_pre_script_cb: Uknown callback type\n");
+ if (type > SCRIPT_CB_NUM) {
+ LOG(L_BUG, "Uknown callback type\n");
abort();
}
#endif
@@ -185,7 +185,7 @@ int exec_post_script_cb( struct sip_msg *msg, enum script_cb_type
type)
unsigned int flags;
#ifdef EXTRA_DEBUG
- if (type >= SCRIPT_CB_NUM) {
+ if (type > SCRIPT_CB_NUM) {
LOG(L_BUG, "exec_pre_script_cb: Uknown callback type\n");
abort();
}