projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b22ee1
)
Deal with two common places for corrupt Explain database
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 24 Feb 2007 16:47:16 +0000
(16:47 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 24 Feb 2007 16:47:16 +0000
(16:47 +0000)
index/zinfo.c
patch
|
blob
|
history
diff --git
a/index/zinfo.c
b/index/zinfo.c
index
01a8bdd
..
9086b6c
100644
(file)
--- a/
index/zinfo.c
+++ b/
index/zinfo.c
@@
-1,4
+1,4
@@
-/* $Id: zinfo.c,v 1.76 2007-01-15 15:10:17 adam Exp $
+/* $Id: zinfo.c,v 1.77 2007-02-24 16:47:16 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
Copyright (C) 1995-2007
Index Data ApS
@@
-409,11
+409,23
@@
ZebraExplainInfo zebraExplain_open(
#endif
node_tgtinfo = data1_search_tag(zei->dh, zei->data1_target,
"/targetInfo");
#endif
node_tgtinfo = data1_search_tag(zei->dh, zei->data1_target,
"/targetInfo");
+ if (!node_tgtinfo)
+ {
+ yaz_log(YLOG_FATAL, "Node node_tgtinfo missing");
+ nmem_destroy(zei->nmem);
+ return 0;
+ }
zebraExplain_mergeAccessInfo(zei, node_tgtinfo,
&zei->accessInfo);
node_zebra = data1_search_tag(zei->dh, node_tgtinfo->child,
"zebraInfo");
zebraExplain_mergeAccessInfo(zei, node_tgtinfo,
&zei->accessInfo);
node_zebra = data1_search_tag(zei->dh, node_tgtinfo->child,
"zebraInfo");
+ if (!node_zebra)
+ {
+ yaz_log(YLOG_FATAL, "Node node_zebra missing");
+ nmem_destroy(zei->nmem);
+ return 0;
+ }
np = 0;
if (node_zebra)
{
np = 0;
if (node_zebra)
{