Commit 3d9656b6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

update: use U32_AT

parent 69d88103
...@@ -257,10 +257,8 @@ static size_t parse_signature_v4_packet( signature_packet_t *p_sig, ...@@ -257,10 +257,8 @@ static size_t parse_signature_v4_packet( signature_packet_t *p_sig,
{ {
if( p + 4 > max_pos ) if( p + 4 > max_pos )
return 0; return 0;
i_subpacket_len = *++p << 24; i_subpacket_len = U32_AT(p);
i_subpacket_len += *++p << 16; p += 4;
i_subpacket_len += *++p << 8;
i_subpacket_len += *++p;
} }
if( *p == ISSUER_SUBPACKET ) if( *p == ISSUER_SUBPACKET )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment