summaryrefslogtreecommitdiff
path: root/src/libgsmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgsmd')
-rw-r--r--src/libgsmd/libgsmd_event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libgsmd/libgsmd_event.c b/src/libgsmd/libgsmd_event.c
index 6e19eff..d2f00cd 100644
--- a/src/libgsmd/libgsmd_event.c
+++ b/src/libgsmd/libgsmd_event.c
@@ -43,7 +43,10 @@ static int evt_demux_msghandler(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh
gmh->msg_subtype >= __NUM_GSMD_EVT)
return -EINVAL;
- return evt_handlers[gmh->msg_subtype](lh, gmh->msg_subtype, aux);
+ if (evt_handlers[gmh->msg_subtype])
+ return evt_handlers[gmh->msg_subtype](lh, gmh->msg_subtype, aux);
+ else
+ return 0;
}
int lgsm_evt_init(struct lgsm_handle *lh)
personal git repositories of Harald Welte. Your mileage may vary