Module: sip-router
Branch: 3.1
Commit: b349f8591c305fb64afebbb89cfdd64e06d89f8d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b349f85…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Oct 11 17:06:36 2010 +0200
siptrace: print error message if trace flag is invalid
(cherry picked from commit 69092c2f26a34c398c020a1b47eba64cfb5423b8)
---
modules_k/siptrace/siptrace.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/siptrace/siptrace.c b/modules_k/siptrace/siptrace.c
index 343beb6..d0d1789 100644
--- a/modules_k/siptrace/siptrace.c
+++ b/modules_k/siptrace/siptrace.c
@@ -254,7 +254,10 @@ static int mod_init(void)
trace_local_ip.len = strlen(trace_local_ip.s);
if (trace_flag<0 || trace_flag>(int)MAX_FLAG)
+ {
+ LM_ERR("invalid trace flag %d\n", trace_flag);
return -1;
+ }
trace_flag = 1<<trace_flag;
/* Find a database module */