diff --git a/main/callerid.c b/main/callerid.c index c92f84ba4d..a67b1c6946 100644 --- a/main/callerid.c +++ b/main/callerid.c @@ -1103,6 +1103,9 @@ static struct { int ast_parse_caller_presentation(const char *data) { int i; + if (!data) { + return -1; + } for (i = 0; i < ARRAY_LEN(pres_types); i++) { if (!strcasecmp(pres_types[i].name, data))