ZOOM: only supply clientIP for InitRequest
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 5 Mar 2014 14:44:41 +0000 (15:44 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 5 Mar 2014 14:44:43 +0000 (15:44 +0100)
Rather than for all APDU types.

src/zoom-z3950.c

index 2835262..8afcd01 100644 (file)
@@ -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);