From: Adam Dickmeiss Date: Tue, 17 May 2005 12:59:50 +0000 (+0000) Subject: Fixed bug in Yaz_Facility_Update::recv: taken (1) was returned for X-Git-Tag: YAZPP.yazxf.1.4.1~6 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=2e459a1bdde5b33897de79f6dfc55237db188460;p=yazpp-moved-to-github.git Fixed bug in Yaz_Facility_Update::recv: taken (1) was returned for all extended services. It should only be returned when update extended services was received and handled. --- diff --git a/src/yaz-z-server-update.cpp b/src/yaz-z-server-update.cpp index 80df0d4..be554f7 100644 --- a/src/yaz-z-server-update.cpp +++ b/src/yaz-z-server-update.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2000-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-server-update.cpp,v 1.7 2004-12-13 20:50:54 adam Exp $ + * $Id: yaz-z-server-update.cpp,v 1.8 2005-05-17 12:59:50 adam Exp $ */ #include @@ -34,6 +34,7 @@ int Yaz_Facility_Update::recv(Yaz_Z_Server *s, Z_APDU *apdu_request) apdu_response->u.extendedServicesResponse); s->transfer_referenceId(apdu_request, apdu_response); s->send_Z_PDU(apdu_response, 0); + return 1; } else if (req->taskSpecificParameters && req->taskSpecificParameters->which == Z_External_update0) @@ -43,6 +44,7 @@ int Yaz_Facility_Update::recv(Yaz_Z_Server *s, Z_APDU *apdu_request) apdu_response->u.extendedServicesResponse); s->transfer_referenceId(apdu_request, apdu_response); s->send_Z_PDU(apdu_response, 0); + return 1; } - return 1; + return 0; }