/* resultSetPrepare (req, t, req->cur_pa); */
if (t->resultSetStartPoint == 1 && t->piggyback &&
+ t->numberOfRecordsRequested &&
(t->sort_criteria == 0 || *t->sort_criteria == 0) )
{
sreq->largeSetLowerBound = odr_malloc (t->odr_out, sizeof(int));
sreq->mediumSetElementSetNames = esn;
sreq->smallSetElementSetNames = esn;
}
- }
- else
- {
- sreq->smallSetUpperBound = odr_malloc (t->odr_out, sizeof(int));
- *sreq->smallSetUpperBound = 0;
- sreq->largeSetLowerBound = odr_malloc (t->odr_out, sizeof(int));
- *sreq->largeSetLowerBound = 1;
- sreq->mediumSetPresentNumber = odr_malloc (t->odr_out, sizeof(int));
- *sreq->mediumSetPresentNumber = 0;
- }
- sreq->query = r->query;
- if (t->preferredRecordSyntax && *t->preferredRecordSyntax)
- {
- struct oident ident;
+ if (t->preferredRecordSyntax && *t->preferredRecordSyntax)
+ {
+ struct oident ident;
- ident.proto = PROTO_Z3950;
- ident.oclass = CLASS_RECSYN;
- ident.value = oid_getvalbyname (t->preferredRecordSyntax);
- sreq->preferredRecordSyntax =
- odr_oiddup (t->odr_out, oid_getoidbyent (&ident));
+ ident.proto = PROTO_Z3950;
+ ident.oclass = CLASS_RECSYN;
+ ident.value = oid_getvalbyname (t->preferredRecordSyntax);
+ sreq->preferredRecordSyntax =
+ odr_oiddup (t->odr_out, oid_getoidbyent (&ident));
+ }
}
+ sreq->query = r->query;
sreq->databaseNames = set_DatabaseNames (t, &sreq->num_databaseNames);
send_APDU (t, apdu);