yaz-client: fix bad encoding of "itemorder item"
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Aug 2012 12:06:46 +0000 (14:06 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 13 Aug 2012 12:06:46 +0000 (14:06 +0200)
The itemorder item <no>  - command forgot to use length of encoded
Item Request package. Error present since YAZ 3.

client/client.c

index d8e78b9..c778d77 100644 (file)
@@ -2130,6 +2130,7 @@ static Z_External *create_external_itemRequest(void)
     }
     else
     {
+        item_request_buf = odr_getbuf (out, &item_request_size, 0);
         r = (Z_External *) odr_malloc(out, sizeof(*r));
         r->direct_reference = odr_oiddup(out, yaz_oid_general_isoill_1);
         r->indirect_reference = 0;