projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
User-defined retrieval records for yaz-ztest YAZ-714
[yaz-moved-to-github.git]
/
src
/
ber_int.c
diff --git
a/src/ber_int.c
b/src/ber_int.c
index
cc02d3b
..
eb651e2
100644
(file)
--- 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:
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;
}
{
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)
return 1;
case ODR_ENCODE:
if ((res = ber_encinteger(o, *val)) < 0)