[sr-dev] git:master:49a12679: core: events - fix getting str pointer for EXTRA_DEBUG log message
Daniel-Constantin Mierla
miconda at gmail.com
Thu Dec 14 14:07:09 CET 2017
Module: kamailio
Branch: master
Commit: 49a12679ffa20ccef4d9cc14c426d4d5c2567816
URL: https://github.com/kamailio/kamailio/commit/49a12679ffa20ccef4d9cc14c426d4d5c2567816
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-14T14:06:43+01:00
core: events - fix getting str pointer for EXTRA_DEBUG log message
- reported by GH #1367
---
Modified: src/core/events.c
---
Diff: https://github.com/kamailio/kamailio/commit/49a12679ffa20ccef4d9cc14c426d4d5c2567816.diff
Patch: https://github.com/kamailio/kamailio/commit/49a12679ffa20ccef4d9cc14c426d4d5c2567816.patch
---
diff --git a/src/core/events.c b/src/core/events.c
index 5293969ff5..5f71cd8f22 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -221,7 +221,7 @@ int sr_event_exec(int type, sr_event_param_t *evp)
if(unlikely(_sr_events_list.net_data_out[SREV_CB_LIST_SIZE-1]!=0))
{
#ifdef EXTRA_DEBUG
- p = (str*)data;
+ p = (str*)evp->data;
LM_DBG("PRE-OUT ++++++++++++++++++++\n"
"%.*s\n+++++++++++++++++++\n", p->len, p->s);
#endif /* EXTRA_DEBUG */
More information about the sr-dev
mailing list