From: Sebastian Hammer Date: Mon, 20 Mar 1995 12:18:22 +0000 (+0000) Subject: Fixed bug in ber_oid X-Git-Tag: YAZ.1.8~1111 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=396d0ccd2549e6f31cf1f9adc1c19a97d3a7b0de;p=yaz-moved-to-github.git Fixed bug in ber_oid --- diff --git a/odr/ber_oid.c b/odr/ber_oid.c index dd4fd82..576edfd 100644 --- a/odr/ber_oid.c +++ b/odr/ber_oid.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: ber_oid.c,v $ - * Revision 1.4 1995-03-08 12:12:11 quinn + * Revision 1.5 1995-03-20 12:18:22 quinn + * Fixed bug in ber_oid + * + * Revision 1.4 1995/03/08 12:12:11 quinn * Added better error checking. * * Revision 1.3 1995/03/01 08:40:56 quinn @@ -86,10 +89,9 @@ int ber_oidc(ODR o, Odr_oid *p) o->error = ODATA; return 0; } - p[1] = p[0] * 40 + p[1]; for (pos = 1; p[pos] >= 0; pos++) { - id = p[pos]; + id = pos > 1 ? p[pos] : p[0] * 40 + p[1]; n = 0; do {