yaz/yaz-5.22.0-client.patch
Lars Vogdt 3df19cfb7c - Update to 5.22.0
+ rdf-lookup: Add timeout configuration option YAZ-891
                Add yaz_url_set_timeout
  + rdf-lookup: report error if X-Path cannot be compiled YAZ-890
  + rdf-lookup: avoid double dash in generated XML comments
  + rdf-lookup: fix misleading log on rdf-failures YAZ-884
  + Add documentation for <param> tag in xslt retrieval facility doc
  + comstack: Fix compilation error if getaddrinfo does not exist
  + yaz-url: ignore content-length for HTTP method HEAD YAZ-878
  + retrieval: fix incorrect backend schema YAZ-877
  + record_conv: allow HTTP method to be set for authority lookup
  + record_conv: change error for unsupported backend element
  + New type, rdf-lookup, for record conversion system (retrieval)
  + Fix yaz_url_exec sending same uri for 2nd call
  + cql2pqf: relation modifiers with name and value are converted
    to proximity with unit=element. Left operand is the the primary
    index and term. Right operand is attribute index-name mapping of name
    and value being the relation modifier value. For example,
       dc.title =/dc.language=dk kirke
    could be mapped to
       @prox 0 0 0 0 k 8 @attr 1=4 "kirke" @attr 1=54 dk
  + Add ProximityUnit map to/from string utility
  + New functions z_ProxUnit_to_str and z_str_to_ProxUnit.
  + Allow multi-byte indicators for MARC subsystem
  + JSON: to the spec check of number
  + JSON: strict \uxxxx sequence
  + JSON: fail for nesting more than 1000 levels
  + JSON: distinguish between EOF and error
  + CCL: fix r=o, r=r WRT inherited attributes YAZ-864
  + ZOOM C: tweak when connection failed is returned

OBS-URL: https://build.opensuse.org/package/show/Publishing/yaz?expand=0&rev=100
2017-07-03 16:09:14 +00:00

23 lines
842 B
Diff

Index: yaz-5.22.0/client/client.c
===================================================================
--- yaz-5.22.0.orig/client/client.c
+++ yaz-5.22.0/client/client.c
@@ -2549,6 +2549,7 @@ static int cmd_xmles(const char *arg)
int noread = 0;
Odr_oid *oid;
char oid_str[51];
+ union { unsigned char **ucp; char **cp; }pun;
Z_APDU *apdu = zget_APDU(out, Z_APDU_extendedServicesRequest);
Z_ExtendedServicesRequest *req = apdu->u.extendedServicesRequest;
@@ -2568,7 +2569,8 @@ static int cmd_xmles(const char *arg)
return 0;
}
arg += noread;
- if (parse_cmd_doc(&arg, out, &asn_buf,
+ pun.ucp = &ext->u.single_ASN1_type->buf;
+ if (parse_cmd_doc(&arg, out, pun.ucp,
&ext->u.single_ASN1_type->len) == 0)
return 0;