Module: sip-router
Branch: master
Commit: b1ba03f1fe41522b62aa727966c4dec3062cbbb9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b1ba03f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Sep 12 20:41:55 2014 +0200
usrloc: safety check for debug message printing path value from rpc add command
- reported and patch by Thomas Arimont, FS#467
---
modules/usrloc/ul_rpc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/usrloc/ul_rpc.c b/modules/usrloc/ul_rpc.c
index 50e5343..938328e 100644
--- a/modules/usrloc/ul_rpc.c
+++ b/modules/usrloc/ul_rpc.c
@@ -552,7 +552,7 @@ static void ul_rpc_add(rpc_t* rpc, void* ctx)
}
LM_DBG("ret: %d table:%.*s aor:%.*s contact:%.*s expires:%d dtemp:%f path:%.*s
flags:%d bflags:%d methods:%d\n",
ret, table.len, table.s, aor.len, aor.s, contact.len, contact.s,
- (int) ci.expires, dtemp, ci.path->len, ci.path->s, ci.flags, ci.cflags, (int)
ci.methods);
+ (int) ci.expires, dtemp, (ci.path)?ci.path->len:0, (ci.path &&
ci.path->s)?ci.path->s:"", ci.flags, ci.cflags, (int) ci.methods);
if ( ret != 9) {
rpc->fault(ctx, 500, "Not enough parameters or wrong format");
return;