From: Adam Dickmeiss Date: Thu, 28 Oct 2004 22:29:43 +0000 (+0000) Subject: Fix bug #195: YAZ proxy removes otherInfo. X-Git-Tag: YAZPROXY.0.9~26 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4dc4b2c2657245c3342ddaae0ae981b0ad99dd0a;p=yazproxy-moved-to-github.git Fix bug #195: YAZ proxy removes otherInfo. --- diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 66d7da9..e4f3d8e 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy.cpp,v 1.10 2004-10-23 23:12:24 adam Exp $ +/* $Id: yaz-proxy.cpp,v 1.11 2004-10-28 22:29:43 adam Exp $ Copyright (c) 1998-2004, Index Data. This file is part of the yaz-proxy. @@ -2254,9 +2254,9 @@ void Yaz_Proxy::handle_incoming_Z_PDU(Z_APDU *apdu) return; } - // delete other info part from PDU before sending to target + // delete other info construct completely if 0 elements get_otherInfoAPDU(apdu, &oi); - if (oi) + if (*oi && (*oi)->num_elements == 0) *oi = 0; if (apdu->which == Z_APDU_presentRequest &&