Module: kamailio
Branch: master
Commit: 5eceec21a2de8a95222cffc307ab0aeb15896b55
URL:
https://github.com/kamailio/kamailio/commit/5eceec21a2de8a95222cffc307ab0ae…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-03-09T07:59:29+02:00
modules/cdp: fixed typo in len check
---
Modified: modules/cdp/api_process.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5eceec21a2de8a95222cffc307ab0ae…
Patch:
https://github.com/kamailio/kamailio/commit/5eceec21a2de8a95222cffc307ab0ae…
---
diff --git a/modules/cdp/api_process.c b/modules/cdp/api_process.c
index e53dda7..78a0d76 100644
--- a/modules/cdp/api_process.c
+++ b/modules/cdp/api_process.c
@@ -108,7 +108,7 @@ int api_callback(peer *p,AAAMessage *msg,void* ptr)
long elapsed_usecs = (stop.tv_sec - t->started.tv_sec)*1000000 +
(stop.tv_usec - t->started.tv_usec);
long elapsed_msecs = elapsed_usecs/1000;
if (elapsed_msecs > *latency_threshold_p) {
- if (msg->sessionId && msg->sessionId->data)
+ if (msg->sessionId && msg->sessionId->data.len)
LM_ERR("Received diameter response outside of threshold (%d) -
%ld (session-id: [%.*s])\n", *latency_threshold_p, elapsed_msecs,
msg->sessionId->data.len, msg->sessionId->data.s);
else
LM_ERR("Received diameter response outside of threshold (%d) -
%ld (no session-id)\n", *latency_threshold_p, elapsed_msecs);