X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-proxy.cpp;h=e24fb8ccf1bb38883416c46089c9e1dd7eaf8fd8;hb=e3133d2f2c580f76c9da2e7621c74a064f0955c9;hp=e3954d170869aafb8d3de652144a321bd269b31a;hpb=804e399b3394762e87f54d8b1c6e0fe882f9e03b;p=yazpp-moved-to-github.git diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index e3954d1..e24fb8c 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,10 +1,19 @@ /* * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * * $Log: yaz-proxy.cpp,v $ - * Revision 1.16 2000-09-04 08:29:22 adam + * Revision 1.19 2000-10-11 11:58:16 adam + * Moved header files to include/yaz++. Switched to libtool and automake. + * Configure script creates yaz++-config script. + * + * Revision 1.18 2000/09/08 10:23:42 adam + * Added skeleton of yaz-z-server. + * + * 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. * @@ -65,7 +74,7 @@ #include #include -#include +#include Yaz_Proxy::Yaz_Proxy(IYaz_PDU_Observable *the_PDU_Observable) : Yaz_Z_Assoc(the_PDU_Observable) @@ -391,7 +400,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) {