diff options
author | Adam Dickmeiss <dickmeiss@php.net> | 2001-02-13 20:02:53 +0000 |
---|---|---|
committer | Adam Dickmeiss <dickmeiss@php.net> | 2001-02-13 20:02:53 +0000 |
commit | 9d8c1fb98390ca89570c5b6de43885c7a5573e48 (patch) | |
tree | 9aa93dc18042350b659304f9d8c23511d267700f /ext/yaz/php_yaz.c | |
parent | f6925611fb40499e9c357d7f6d95a7a4c1a96308 (diff) | |
download | php-git-9d8c1fb98390ca89570c5b6de43885c7a5573e48.tar.gz |
Bug fix: Record retrieval (present) is termiated on error.
Diffstat (limited to 'ext/yaz/php_yaz.c')
-rw-r--r-- | ext/yaz/php_yaz.c | 5 |
1 files 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) |