Module: kamailio Branch: master Commit: 49a12679ffa20ccef4d9cc14c426d4d5c2567816 URL: https://github.com/kamailio/kamailio/commit/49a12679ffa20ccef4d9cc14c426d4d5c2567816
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@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 */ _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev