yaz/yaz-3.0.34-client.diff

23 lines
796 B
Diff

--- yaz-3.0.34/client/client.c.orig 2008-06-09 17:07:21.000000000 +0200
+++ yaz-3.0.34/client/client.c 2008-07-03 10:27:57.000000000 +0200
@@ -2379,6 +2379,7 @@
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;
@@ -2398,7 +2399,8 @@
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;
Diff finished. Thu Jul 3 10:29:21 2008