From 480f849f7e012d2d742d2d1dffbd1b0691dcd33a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 5 Mar 2014 15:44:41 +0100 Subject: [PATCH] ZOOM: only supply clientIP for InitRequest Rather than for all APDU types. --- src/zoom-z3950.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zoom-z3950.c b/src/zoom-z3950.c index 2835262..8afcd01 100644 --- a/src/zoom-z3950.c +++ b/src/zoom-z3950.c @@ -510,7 +510,7 @@ static int encode_APDU(ZOOM_connection c, Z_APDU *a, ODR out) yaz_oi_set_string_oid(oi, out, yaz_oid_userinfo_cookie, 1, c->cookie_out); } - if (c->client_IP) + if (c->client_IP && a->which == Z_APDU_initRequest) { Z_OtherInformation **oi; yaz_oi_APDU(a, &oi); -- 1.7.10.4