diff options
Diffstat (limited to 'lib/minitasn1/coding.c')
-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) |