minor fix in mmsbox: handling of missing keyword
This commit is contained in:
parent
eef6e9b967
commit
824581609c
|
@ -143,12 +143,12 @@ static MmsService *get_service(Octstr *keyword, Octstr *mmc_id)
|
|||
gwlist_search(ms->allowed_mmscs, mmc_id, (gwlist_item_matches_t *)octstr_compare) == NULL)
|
||||
continue;
|
||||
|
||||
if (keyword == NULL ||
|
||||
if (keyword &&
|
||||
gwlist_search(ms->keywords, keyword,
|
||||
(gwlist_item_matches_t *)_x_octstr_comp) != NULL)
|
||||
(gwlist_item_matches_t *)_x_octstr_comp) != NULL)
|
||||
return ms;
|
||||
|
||||
if (ms->isdefault) /* We also find the catch-all for this sender. */
|
||||
if (ms->isdefault && catch_all == NULL) /* We also find the catch-all for this sender. */
|
||||
catch_all = ms;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue