X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;ds=sidebyside;f=src%2Fyaz-proxy.cpp;h=8a5a27e70781798a6f2904655654878d62007fdc;hb=113c16a5254c24ec5dfc1b72a2b124f0bd356501;hp=4b280f7d03a6c7dabacbd277fde856dbcd43a7da;hpb=1cfab015d330b201317e6437fb144c9ea4cb2cd6;p=yazpp-moved-to-github.git diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 4b280f7..8a5a27e 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-proxy.cpp,v 1.78 2004-01-07 11:10:55 adam Exp $ + * $Id: yaz-proxy.cpp,v 1.79 2004-01-07 11:37:45 adam Exp $ */ #include @@ -1019,11 +1019,12 @@ int Yaz_Proxy::send_to_client(Z_APDU *apdu) int Yaz_ProxyClient::send_to_target(Z_APDU *apdu) { int len = 0; + const char *apdu_name_tmp = apdu_name(apdu); int r = send_Z_PDU(apdu, &len); if (m_root->get_log_mask() & PROXY_LOG_REQ_SERVER) yaz_log (LOG_LOG, "%sSending %s to %s %d bytes", get_session_str(), - apdu_name(apdu), get_hostname(), len); + apdu_name_tmp, get_hostname(), len); m_bytes_sent += len; return r; }