X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_int.c;h=eb651e284da6f6132858fd090c0bf09a7f671f5d;hp=cc02d3b4202f1efeace6d57eef51d08b6804201e;hb=b06636208651777c08e2456bf3b5953fc3c0f2c2;hpb=c82db01c9fc0b51254ec6ead5fe3b503ca098ca0 diff --git a/src/ber_int.c b/src/ber_int.c index cc02d3b..eb651e2 100644 --- a/src/ber_int.c +++ b/src/ber_int.c @@ -37,12 +37,12 @@ int ber_integer(ODR o, Odr_int *val) switch (o->direction) { case ODR_DECODE: - if ((res = ber_decinteger(o->bp, val, odr_max(o))) <= 0) + if ((res = ber_decinteger(o->op->bp, val, odr_max(o))) <= 0) { odr_seterror(o, OPROTO, 50); return 0; } - o->bp += res; + o->op->bp += res; return 1; case ODR_ENCODE: if ((res = ber_encinteger(o, *val)) < 0)