From 051dee8c6b5636a7bf2746ce4c34a379ad82424e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 15 Jun 2011 21:38:08 +0200 Subject: [PATCH] virt_db reports init diagnostics when rejected This fixes bug 4280. --- src/filter_virt_db.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/filter_virt_db.cpp b/src/filter_virt_db.cpp index 1805219..1b3354c 100644 --- a/src/filter_virt_db.cpp +++ b/src/filter_virt_db.cpp @@ -248,8 +248,7 @@ yf::VirtualDB::BackendPtr yf::VirtualDB::Frontend::init_backend( // we hope to get an init response error_code = YAZ_BIB1_DATABASE_UNAVAILABLE; if (gdu && gdu->which == Z_GDU_Z3950 - && gdu->u.z3950->which == Z_APDU_initResponse - && *gdu->u.z3950->u.initResponse->result) + && gdu->u.z3950->which == Z_APDU_initResponse) { Z_InitResponse *res = gdu->u.z3950->u.initResponse; if (ODR_MASK_GET(res->options, Z_Options_namedResultSets)) -- 1.7.10.4