summaryrefslogtreecommitdiff
path: root/lib/minitasn1
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-07-07 20:55:03 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-07-07 20:55:03 +0200
commit5947249d77b5fd8b2b655bba2f7e6a924463ce78 (patch)
tree2f3bb59ae2a2b5780c348ceaca4fa6a702e93bc0 /lib/minitasn1
parentbbabf49db6641e0f5ac8253e3e4eaf9fd35f7d89 (diff)
downloadgnutls-5947249d77b5fd8b2b655bba2f7e6a924463ce78.tar.gz
updated libtasn1
Diffstat (limited to 'lib/minitasn1')
-rw-r--r--lib/minitasn1/coding.c2
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)