From: Adam Dickmeiss Date: Tue, 5 Sep 2000 13:57:28 +0000 (+0000) Subject: Fixed get_otherInfoAPDU to return otherInfo for extended services. X-Git-Tag: YAZPP.0.3~83 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=22eeea158d7baa9291b5449304d979c173034f0a;p=yazpp-moved-to-github.git Fixed get_otherInfoAPDU to return otherInfo for extended services. --- diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index e3954d1..c18e0b4 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: yaz-proxy.cpp,v $ - * Revision 1.16 2000-09-04 08:29:22 adam + * Revision 1.17 2000-09-05 13:57:28 adam + * Fixed get_otherInfoAPDU to return otherInfo for extended services. + * + * Revision 1.16 2000/09/04 08:29:22 adam * Fixed memory leak(s). Added re-use of associations, rather than * re-init, when maximum number of targets are in use. * @@ -391,7 +394,8 @@ void Yaz_Proxy::recv_Z_PDU(Z_APDU *apdu) // delete other info part from PDU before sending to target Z_OtherInformation **oi; get_otherInfoAPDU(apdu, &oi); - *oi = 0; + if (oi) + *oi = 0; if (m_client->send_Z_PDU(apdu) < 0) { diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index d62bed2..824bae6 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: yaz-z-assoc.cpp,v $ - * Revision 1.11 2000-09-04 08:59:16 adam + * Revision 1.12 2000-09-05 13:57:28 adam + * Fixed get_otherInfoAPDU to return otherInfo for extended services. + * + * Revision 1.11 2000/09/04 08:59:16 adam * Changed call to logging functions (yaz_ added). * * Revision 1.10 2000/09/04 08:29:22 adam @@ -246,6 +249,12 @@ void Yaz_Z_Assoc::get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip) case Z_APDU_scanRequest: *oip = &apdu->u.scanRequest->otherInfo; break; + case Z_APDU_extendedServicesRequest: + *oip = &apdu->u.extendedServicesRequest->otherInfo; + break; + case Z_APDU_deleteResultSetRequest: + *oip = &apdu->u.deleteResultSetRequest->otherInfo; + break; case Z_APDU_initResponse: *oip = &apdu->u.initResponse->otherInfo; break; @@ -261,6 +270,12 @@ void Yaz_Z_Assoc::get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip) case Z_APDU_scanResponse: *oip = &apdu->u.scanResponse->otherInfo; break; + case Z_APDU_extendedServicesResponse: + *oip = &apdu->u.extendedServicesResponse->otherInfo; + break; + case Z_APDU_deleteResultSetResponse: + *oip = &apdu->u.deleteResultSetResponse->otherInfo; + break; default: *oip = 0; break;