projects
/
yazproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0864c20
)
Empty backendelementset results in no elementset
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 29 Nov 2012 08:45:00 +0000
(09:45 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 29 Nov 2012 08:45:00 +0000
(09:45 +0100)
transmitted to backend.
src/yaz-proxy.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-proxy.cpp
b/src/yaz-proxy.cpp
index
e17b2ef
..
6865413
100644
(file)
--- a/
src/yaz-proxy.cpp
+++ b/
src/yaz-proxy.cpp
@@
-2776,8
+2776,10
@@
Z_APDU *Yaz_Proxy::handle_syntax_validation(Z_APDU *apdu)
}
if (m_backend_elementset)
{
}
if (m_backend_elementset)
{
- Z_ElementSetNames *esn = mk_esn_from_schema(odr_encode(),
- m_backend_elementset);
+ Z_ElementSetNames *esn =
+ mk_esn_from_schema(
+ odr_encode(),
+ *m_backend_elementset ? m_backend_elementset : 0);
sr->smallSetElementSetNames = esn;
sr->mediumSetElementSetNames = esn;
}
sr->smallSetElementSetNames = esn;
sr->mediumSetElementSetNames = esn;
}
@@
-2853,8
+2855,10
@@
Z_APDU *Yaz_Proxy::handle_syntax_validation(Z_APDU *apdu)
}
if (m_backend_elementset)
{
}
if (m_backend_elementset)
{
- Z_ElementSetNames *esn = mk_esn_from_schema(odr_encode(),
- m_backend_elementset);
+ Z_ElementSetNames *esn =
+ mk_esn_from_schema(
+ odr_encode(),
+ *m_backend_elementset ? m_backend_elementset : 0);
Z_RecordComposition *comp = (Z_RecordComposition *)
odr_malloc(odr_encode(), sizeof(Z_RecordComposition));
comp->which = Z_RecordComp_simple;
Z_RecordComposition *comp = (Z_RecordComposition *)
odr_malloc(odr_encode(), sizeof(Z_RecordComposition));
comp->which = Z_RecordComp_simple;