From 4dc4b2c2657245c3342ddaae0ae981b0ad99dd0a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 28 Oct 2004 22:29:43 +0000 Subject: [PATCH] Fix bug #195: YAZ proxy removes otherInfo. --- src/yaz-proxy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 && -- 1.7.10.4