X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzinfo.c;h=9086b6c42191f7b05a2093431e6e5ddcb9f318ab;hb=9040d4abe6fe0fc2820f224baf8c538716b02ea0;hp=267d1643b54dad9ebd6bf63406a495fd0c84399b;hpb=830a3c8800fdfb57a4ccd45fd113bc6ace47724c;p=idzebra-moved-to-github.git diff --git a/index/zinfo.c b/index/zinfo.c index 267d164..9086b6c 100644 --- a/index/zinfo.c +++ b/index/zinfo.c @@ -1,5 +1,5 @@ -/* $Id: zinfo.c,v 1.75 2006-11-27 10:40:33 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: zinfo.c,v 1.77 2007-02-24 16:47:16 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -409,11 +409,23 @@ ZebraExplainInfo zebraExplain_open( #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"); + if (!node_zebra) + { + yaz_log(YLOG_FATAL, "Node node_zebra missing"); + nmem_destroy(zei->nmem); + return 0; + } np = 0; if (node_zebra) {