From: Adam Dickmeiss Date: Tue, 18 Feb 2014 15:19:47 +0000 (+0100) Subject: ZOOM: throw present request out of range again YAZ-739 X-Git-Tag: v5.0.14~3 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b41eafb39bc0ee50b4c5988f5ecfc6aad91933d5;hp=d0a4d2462d57a0392daf2eb0dc053d91aff5d285 ZOOM: throw present request out of range again YAZ-739 Was removed in YAZ 5.0.13. --- diff --git a/src/zoom-z3950.c b/src/zoom-z3950.c index ad46592..2835262 100644 --- a/src/zoom-z3950.c +++ b/src/zoom-z3950.c @@ -1577,10 +1577,9 @@ zoom_ret ZOOM_connection_Z3950_search(ZOOM_connection c) if (resultset->live_set) { - if (*start >= resultset->size) - return zoom_complete; if (*start + *count > resultset->size) - *count = resultset->size - *start; + ZOOM_set_dset_error(c, YAZ_BIB1_PRESENT_REQUEST_OUT_OF_RANGE, "Bib-1", + 0, 0); } if (c->error) /* don't continue on error */