Module: kamailio Branch: 5.1 Commit: aaef146868dfd3117f7130a95c908d47de0cb56f URL: https://github.com/kamailio/kamailio/commit/aaef146868dfd3117f7130a95c908d47...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-12-14T14:08:42+01:00
core: events - fix getting str pointer for EXTRA_DEBUG log message
- reported by GH #1367
(cherry picked from commit 49a12679ffa20ccef4d9cc14c426d4d5c2567816)
---
Modified: src/core/events.c
---
Diff: https://github.com/kamailio/kamailio/commit/aaef146868dfd3117f7130a95c908d47... Patch: https://github.com/kamailio/kamailio/commit/aaef146868dfd3117f7130a95c908d47...
---
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 */