projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgi: reads stdin part of MP-564
[metaproxy-moved-to-github.git]
/
src
/
sru_util.cpp
diff --git
a/src/sru_util.cpp
b/src/sru_util.cpp
index
5ce98f7
..
d9e8730
100644
(file)
--- a/
src/sru_util.cpp
+++ b/
src/sru_util.cpp
@@
-131,6
+131,7
@@
bool mp_util::build_sru_explain(metaproxy_1::Package &package,
xmlDocDumpFormatMemory(doc, &xmlbuff, &xmlbuffsz, 1);
explain_xml.assign((const char*)xmlbuff, 0, xmlbuffsz);
xmlDocDumpFormatMemory(doc, &xmlbuff, &xmlbuffsz, 1);
explain_xml.assign((const char*)xmlbuff, 0, xmlbuffsz);
+ xmlFree(xmlbuff);
}
}
@@
-227,7
+228,8
@@
bool mp_util::build_sru_response(mp::Package &package,
Z_SRW_PDU * mp_util::decode_sru_request(mp::Package &package,
mp::odr &odr_de,
mp::odr &odr_en,
Z_SRW_PDU * mp_util::decode_sru_request(mp::Package &package,
mp::odr &odr_de,
mp::odr &odr_en,
- Z_SRW_PDU *sru_pdu_res,
+ Z_SRW_diagnostic **diagnostic,
+ int *num_diagnostic,
Z_SOAP **soap,
char *charset)
{
Z_SOAP **soap,
char *charset)
{
@@
-250,15
+252,8
@@
Z_SRW_PDU * mp_util::decode_sru_request(mp::Package &package,
// closing connection if we did not ...
if (0 == yaz_sru_decode(http_req, &sru_pdu_req, soap,
odr_de, &charset,
// closing connection if we did not ...
if (0 == yaz_sru_decode(http_req, &sru_pdu_req, soap,
odr_de, &charset,
- &(sru_pdu_res->u.explain_response->diagnostics),
- &(sru_pdu_res->u.explain_response->num_diagnostics)))
+ diagnostic, num_diagnostic))
{
{
- if (sru_pdu_res->u.explain_response->num_diagnostics)
- {
- //sru_pdu_res = sru_pdu_res_exp;
- package.session().close();
- return 0;
- }
return sru_pdu_req;
}
else if (0 == yaz_srw_decode(http_req, &sru_pdu_req, soap,
return sru_pdu_req;
}
else if (0 == yaz_srw_decode(http_req, &sru_pdu_req, soap,