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:
df117f4
)
Fixed problem where indexer could crash if abstract syntax was undefined.
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 5 Dec 2000 19:09:15 +0000
(19:09 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 5 Dec 2000 19:09:15 +0000
(19:09 +0000)
recctrl/recgrs.c
patch
|
blob
|
history
diff --git
a/recctrl/recgrs.c
b/recctrl/recgrs.c
index
03fb6d5
..
5b5ee4f
100644
(file)
--- a/
recctrl/recgrs.c
+++ b/
recctrl/recgrs.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recgrs.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recgrs.c,v $
- * Revision 1.38 2000-12-05 14:44:58 adam
+ * Revision 1.39 2000-12-05 19:09:15 adam
+ * Fixed problem where indexer could crash if abstract syntax was undefined.
+ *
+ * Revision 1.38 2000/12/05 14:44:58 adam
* Fixed minor bug that could cause zmbol to break it data were emitted
* with not parent tags.
*
* Fixed minor bug that could cause zmbol to break it data were emitted
* with not parent tags.
*
@@
-497,6
+500,8
@@
static int grs_extract_sub(struct grs_handlers *h, struct recExtractCtrl *p,
return RECCTRL_EXTRACT_EOF;
oe.proto = PROTO_Z3950;
oe.oclass = CLASS_SCHEMA;
return RECCTRL_EXTRACT_EOF;
oe.proto = PROTO_Z3950;
oe.oclass = CLASS_SCHEMA;
+ if (!n->u.root.absyn)
+ return RECCTRL_EXTRACT_ERROR;
oe.value = n->u.root.absyn->reference;
if ((oid_ent_to_oid (&oe, oidtmp)))
(*p->schemaAdd)(p, oidtmp);
oe.value = n->u.root.absyn->reference;
if ((oid_ent_to_oid (&oe, oidtmp)))
(*p->schemaAdd)(p, oidtmp);