/* Called from parser to finish any searches that have reached maximum results.  */
static void _mdns_search_finish_done()
/* Called from parser to finish any searches that have reached maximum results.  */
static void _mdns_search_finish_done()
{
    mdns_search_once_t * search = _mdns_server->search_once;
    mdns_search_once_t * s = NULL;
    while (search) {
        s = search;
        search = search->next;
        if (s->max_results && s->num_results >= s->max_results) {
            _mdns_search_finish(s);
        }
    }
}