X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=asn%2Fprt-acc.c;h=dfc024e195281748aaf6b2755aaad1ffdadfeac6;hp=f3b860024619fcf8079c3292c0d752f4ef8042c6;hb=fb9fcec623beac87912604f17c680fad3def4a1b;hpb=cef1af6f2b0a094a907dec1a7bd1c4f6a42ef13c diff --git a/asn/prt-acc.c b/asn/prt-acc.c index f3b8600..dfc024e 100644 --- a/asn/prt-acc.c +++ b/asn/prt-acc.c @@ -1,10 +1,13 @@ /* - * Copyright (c) 1995, Index Data. + * Copyright (c) 1995-1998, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: prt-acc.c,v $ - * Revision 1.5 1995-09-29 17:11:53 quinn + * Revision 1.6 1998-01-05 09:04:57 adam + * Fixed bugs in encoders/decoders - Not operator (!) missing. + * + * Revision 1.5 1995/09/29 17:11:53 quinn * Smallish * * Revision 1.4 1995/09/27 15:02:41 quinn @@ -136,7 +139,7 @@ int z_ResponseUnit1(ODR o, Z_ResponseUnit1 **p, int opt) {-1, -1, -1, -1, 0} }; - if (odr_sequence_begin(o, p, sizeof(**p))) + if (!odr_sequence_begin(o, p, sizeof(**p))) return opt && odr_ok(o); return odr_explicit(o, z_PromptId1, &(*p)->promptId, ODR_CONTEXT, 1, 0) &&