Fix diagnostic for MARC and present request out of range
[yaz-moved-to-github.git] / ztest / ztest.c
index 7ed5e2a..fb9fd8d 100644 (file)
@@ -522,6 +522,7 @@ int ztest_fetch(void *handle, bend_fetch_rr *r)
         if (!cp)
         {
             r->errcode = YAZ_BIB1_PRESENT_REQUEST_OUT_OF_RANGE;
+            return 0;
         }
         else
         {