X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fclient.c;h=1c537339737c775902fcd33c52c89f15dbc58c0f;hb=186e99a6b10f92bf994322f4f3eacd64f56c1a13;hp=b498751e185aeeb7e1072c51f8d46d41e768b10f;hpb=8b81889f868b613dcc8c7a37d9522228f47cbccd;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index b498751..1c53733 100644 --- a/src/client.c +++ b/src/client.c @@ -1386,7 +1386,21 @@ static int apply_limit(struct client *cl, cl, name, values[i]); if (id) - values[i] = nmem_strdup(nmem_tmp, id); + { + if ( *id ) + { + values[i] = nmem_strdup(nmem_tmp, id); + yaz_log(YLOG_DEBUG, + "apply_limit: s='%s' found id '%s'",s->name,id ); + } + else + { + yaz_log(YLOG_DEBUG, + "apply_limit: %s: term '%s' not found, failing client", + s->name, values[i] ); + ret = -1; + } + } } nmem_strsplit_escape2(nmem_tmp, ",", s->value, &cvalues, &cnum, 1, '\\', 1);