diff --git a/include/yaz/backend.h b/include/yaz/backend.h index e2d6724e5..80201eda1 100644 --- a/include/yaz/backend.h +++ b/include/yaz/backend.h @@ -220,6 +220,7 @@ typedef struct bend_esrequest_rr int errcode; /* 0==success, -1==accepted, >0 = failure */ char *errstring; /* system error string or NULL */ Z_TaskPackage *taskPackage; + Z_External *taskPackageExt; } bend_esrequest_rr; /** \brief Information for Z39.50 segment handler */ diff --git a/src/seshigh.c b/src/seshigh.c index 776c0502a..045bc3782 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -3450,6 +3450,7 @@ static Z_APDU *process_ESRequest(association *assoc, request *reqb) esrequest.errstring = NULL; esrequest.association = assoc; esrequest.taskPackage = 0; + esrequest.taskPackageExt = 0; esrequest.referenceId = req->referenceId; if (ext) @@ -3511,6 +3512,7 @@ static Z_APDU *process_ESRequest(association *assoc, request *reqb) } /* Do something with the members of bend_extendedservice */ + resp->taskPackage = esrequest.taskPackageExt; if (esrequest.taskPackage) { resp->taskPackage = z_ext_record_oid(