projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a200fc1
)
Fixed bug in SUTRS processing.
author
Sebastian Hammer
<quinn@indexdata.com>
Thu, 22 Jun 1995 09:28:03 +0000
(09:28 +0000)
committer
Sebastian Hammer
<quinn@indexdata.com>
Thu, 22 Jun 1995 09:28:03 +0000
(09:28 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
3189faf
..
cabebb9
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: client.c,v $
- * Revision 1.14 1995-06-19 12:37:41 quinn
+ * Revision 1.15 1995-06-22 09:28:03 quinn
+ * Fixed bug in SUTRS processing.
+ *
+ * Revision 1.14 1995/06/19 12:37:41 quinn
* Added BER dumper.
*
* Revision 1.13 1995/06/16 10:29:11 quinn
* Added BER dumper.
*
* Revision 1.13 1995/06/16 10:29:11 quinn
@@
-283,6
+286,13
@@
void display_record(Z_DatabaseRecord *p)
{
Odr_oct *rc;
{
Odr_oct *rc;
+ if (r->which != ODR_EXTERNAL_single)
+ {
+ printf("Expecting single ASN.1 type for SUTRS.\n");
+ return;
+ }
+ odr_setbuf(in, (char*)r->u.single_ASN1_type->buf,
+ r->u.single_ASN1_type->len, 0);
if (!z_SUTRS(in, &rc, 0))
{
odr_perror(in, "decoding SUTRS");
if (!z_SUTRS(in, &rc, 0))
{
odr_perror(in, "decoding SUTRS");