Commit 757bd703 authored by Pekka Pessi's avatar Pekka Pessi

nea_server.c: check params in nea_event_tcreate()

Ignore-this: c4b567a2d2abb5fe1a03b139b9dcf70c

darcs-hash:20090513180725-db55f-d43cff9dec4e1f3a5187f832de209691cf8586b7.gz
parent 2fcc8e7d
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment