1
0
Fork 0

minor fix in mmsbox: handling of missing keyword

This commit is contained in:
bagyenda 2007-06-21 13:29:49 +00:00
parent eef6e9b967
commit 824581609c
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}