Wed May 13 13:07:25 CDT 2009 Pekka Pessi <first.last@nokia.com>

* 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
This commit is contained in:
Michael Jerris 2009-05-15 16:14:01 +00:00
parent 935a1433d6
commit 966e462e8c
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
Fri May 15 11:13:02 CDT 2009
Fri May 15 11:13:34 CDT 2009

View File

@ -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) {