diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-07-07 20:55:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-07-07 20:55:03 +0200 |
commit | 5947249d77b5fd8b2b655bba2f7e6a924463ce78 (patch) | |
tree | 2f3bb59ae2a2b5780c348ceaca4fa6a702e93bc0 /lib/minitasn1 | |
parent | bbabf49db6641e0f5ac8253e3e4eaf9fd35f7d89 (diff) | |
download | gnutls-5947249d77b5fd8b2b655bba2f7e6a924463ce78.tar.gz |
updated libtasn1
Diffstat (limited to 'lib/minitasn1')
-rw-r--r-- | lib/minitasn1/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/minitasn1/coding.c b/lib/minitasn1/coding.c index 7821d85b7a..66531b0fa6 100644 --- a/lib/minitasn1/coding.c +++ b/lib/minitasn1/coding.c @@ -369,7 +369,7 @@ _asn1_objectid_der (unsigned char *str, unsigned char *der, int *der_len) else { first = 0; - for (k = 4; k >= 0; k--) + for (k = sizeof(val); k >= 0; k--) { bit7 = (val >> (k * 7)) & 0x7F; if (bit7 || first || !k) |