* Sebastian Hammer, Adam Dickmeiss
*
* $Log: seshigh.c,v $
- * Revision 1.3 1995-03-16 17:42:39 quinn
+ * Revision 1.5 1995-03-17 10:44:13 quinn
+ * Added catch of null-string in makediagrec
+ *
+ * Revision 1.4 1995/03/17 10:18:08 quinn
+ * Added memory management.
+ *
+ * Revision 1.3 1995/03/16 17:42:39 quinn
* Little changes
*
* Revision 1.2 1995/03/16 13:29:01 quinn
odr_destroy(h->decode);
odr_destroy(h->encode);
free(h->encode_buffer);
+ if (h->input_buffer)
+ free(h->input_buffer);
free(h);
}
fprintf(stderr, "Bad APDU\n");
return -1;
}
+ odr_reset(assoc->decode);
return res;
}
resp.result = &result;
resp.implementationId = "YAZ";
resp.implementationName = "YAZ/Simple asynchronous test server";
- resp.implementationVersion = "$Revision: 1.3 $";
+ resp.implementationVersion = "$Revision: 1.5 $";
resp.userInformationField = 0;
if (!z_APDU(assoc->encode, &apdup, 0))
{
return -1;
}
odr_getbuf(assoc->encode, &assoc->encoded_len);
+ odr_reset(assoc->encode);
iochan_setflags(client, EVENT_OUTPUT | EVENT_EXCEPT);
return 0;
}
rec.u.nonSurrogateDiagnostic = &dr;
dr.diagnosticSetId = bib1;
dr.condition = &err;
- dr.addinfo = addinfo;
+ dr.addinfo = addinfo ? addinfo : "";
return &rec;
}
return -1;
}
odr_getbuf(assoc->encode, &assoc->encoded_len);
+ odr_reset(assoc->encode);
iochan_setflags(client, EVENT_OUTPUT | EVENT_EXCEPT);
return 0;
}
return -1;
}
odr_getbuf(assoc->encode, &assoc->encoded_len);
+ odr_reset(assoc->encode);
iochan_setflags(client, EVENT_OUTPUT | EVENT_EXCEPT);
return 0;
}