X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fattribute.c;h=fb15f2067f80f87a1dcf6024e9a3b0ab449de1ab;hb=3679505d0d073f7db6425e597eb559b53e8c4827;hp=7595591f4ffe30c51752ca4da1f3c2df3eb112f5;hpb=98fbc9a14c0e43976979db6bb1dd4d9bf32c6850;p=idzebra-moved-to-github.git diff --git a/index/attribute.c b/index/attribute.c index 7595591..fb15f20 100644 --- a/index/attribute.c +++ b/index/attribute.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: attribute.c,v $ - * Revision 1.6 1997-09-17 12:19:11 adam + * Revision 1.7 1997-10-29 12:05:01 adam + * Server produces diagnostic "Unsupported Attribute Set" when appropriate. + * + * Revision 1.6 1997/09/17 12:19:11 adam * Zebra version corresponds to YAZ version 1.4. * Changed Zebra server so that it doesn't depend on global common_resource. * @@ -77,11 +80,13 @@ int att_getentbyatt(ZServerInfo *zi, attent *res, oid_value set, int att) if (!zi->registered_sets) load_atts(zi); for (p = zi->registered_sets; p; p = p->next) - if (p->reference == set && (r = getatt(p, att))) + if (p->reference == set) break;; if (!p) - return 0; + return -2; + if (!(r = getatt(p, att))) + return -1; res->attset_ordinal = r->parent->ordinal; res->local_attributes = r->locals; - return 1; + return 0; }