- for (ptr = inst; ptr != NULL; ptr = ptr->next)
- {
- status = inst_describe (cfg, ptr, buffer, sizeof (buffer));
- if (status != 0)
- {
- fprintf (stderr, "inst_search: inst_describe failed\n");
- return (status);
- }
-
- /* no match */
- if (strstr (buffer, term) == NULL)
- continue;
+ selector_field = ident_get_field (inst->select, field);
+ if (selector_field == NULL)
+ return (0);