From 527484b62a32314b515b8b79def0749687de5982 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 8 Oct 2018 12:51:12 +0200 Subject: [PATCH] GFS: Allow External type TaskPackage response YAZ-915 --- include/yaz/backend.h | 1 + src/seshigh.c | 2 ++ 2 files changed, 3 insertions(+) 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(