From 966e462e8ca2da3fbc7b582574a16bf5a3a33d3f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 15 May 2009 16:14:01 +0000 Subject: [PATCH] Wed May 13 13:07:25 CDT 2009 Pekka Pessi * nea_server.c: check params in nea_event_tcreate() git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13347 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/nea/nea_server.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index dd48325edc..c536b98b4b 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Fri May 15 11:13:02 CDT 2009 +Fri May 15 11:13:34 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/nea/nea_server.c b/libs/sofia-sip/libsofia-sip-ua/nea/nea_server.c index debb9b716a..4287ae4359 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nea/nea_server.c +++ b/libs/sofia-sip/libsofia-sip-ua/nea/nea_server.c @@ -1222,6 +1222,9 @@ nea_event_t *nea_event_tcreate(nea_server_t *nes, size_t len = strlen(name); ta_list ta; + if (nes == NULL || callback == NULL || name == NULL) + return NULL; + /* Find a matching event */ if (subname == NULL) { for (pev = &nes->nes_events; (ev = *pev); pev = &(*pev)->ev_next) {