diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-13 22:37:16 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-13 22:37:16 +0100 |
commit | e9e074f518658c46dcc45c9305c7ff4f8eade302 (patch) | |
tree | 597bcb4033e9f18b1c928ced34bb9b584cf35bfa /lib | |
parent | a525a18a080b8d2a5ae0c6b09bdae1d25e684a77 (diff) | |
download | libtasn1-e9e074f518658c46dcc45c9305c7ff4f8eade302.tar.gz |
for some reason the tot < 0 test wasn't successful on negative results. Replaced with tot < ret.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decoding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/decoding.c b/lib/decoding.c index 57e7b2b..9cd5a34 100644 --- a/lib/decoding.c +++ b/lib/decoding.c @@ -111,8 +111,8 @@ int ret, tot; return ret; tot = ret + *len; - - if (tot < 0 || tot > der_len) + + if (tot < ret || tot > der_len) return -3; return ret; |