/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
switch (o->direction)
{
case ODR_DECODE:
- if ((res = ber_declen(o->bp, &len, odr_max(o))) < 1)
+ if ((res = ber_declen(o->op->bp, &len, odr_max(o))) < 1)
{
odr_seterror(o, OPROTO, 18);
return 0;
odr_seterror(o, OPROTO, 19);
return 0;
}
- o->bp += res;
+ o->op->bp += res;
if (len > odr_max(o))
{
odr_seterror(o, OPROTO, 20);
return 0;
}
id <<= 7;
- id |= *o->bp & 0X7F;
+ id |= *o->op->bp & 0X7F;
len--;
}
- while (*(o->bp++) & 0X80);
+ while (*(o->op->bp++) & 0X80);
if (id < 0)
{