From 9d8c1fb98390ca89570c5b6de43885c7a5573e48 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 13 Feb 2001 20:02:53 +0000 Subject: [PATCH] Bug fix: Record retrieval (present) is termiated on error. --- ext/yaz/php_yaz.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index 1c2f41a472..868e487bb2 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -746,11 +746,10 @@ static int send_present (Yaz_Association t) Z_PresentRequest *req = apdu->u.presentRequest; int i = 0; + if (t->error) /* don't continue on error */ + return 0; if (!t->resultSets) /* no result set yet? */ - { return 0; - } - while (t->resultSets->recordList) { if (i >= t->resultSets->recordList->num_records) -- 2.50.1