Skip to content

Commit 63ecb59

Browse files
committed
Handle long OID nodes.
This will behave differently on 32bit architectures, but since 32bit is mostly dead and I don't see a way how to handle this w/o breaking ABI&API, I guess we have to live with it. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 4ef424b commit 63ecb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pk/asn1/der/object_identifier/der_length_object_identifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
unsigned long der_object_identifier_bits(unsigned long x)
1313
{
1414
unsigned long c;
15-
x &= 0xFFFFFFFF;
15+
x &= (unsigned long)-1;
1616
c = 0;
1717
while (x) {
1818
++c;

0 commit comments

Comments
 (0)