projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1001e82
)
fix zoom+memcahced: present request out of range YAZ-767
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 4 Jun 2014 09:15:18 +0000
(11:15 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 4 Jun 2014 09:15:18 +0000
(11:15 +0200)
src/zoom-z3950.c
patch
|
blob
|
history
diff --git
a/src/zoom-z3950.c
b/src/zoom-z3950.c
index
63202f3
..
67a6b47
100644
(file)
--- a/
src/zoom-z3950.c
+++ b/
src/zoom-z3950.c
@@
-1577,9
+1577,10
@@
zoom_ret ZOOM_connection_Z3950_search(ZOOM_connection c)
if (resultset->live_set)
{
- if (*start + *count > resultset->size)
- ZOOM_set_dset_error(c, YAZ_BIB1_PRESENT_REQUEST_OUT_OF_RANGE, "Bib-1",
- 0, 0);
+ if (*start >= resultset->size)
+ *count = 0;
+ else if (*start + *count >= resultset->size)
+ *count = resultset->size - *start;
}
if (c->error) /* don't continue on error */