update: use U32_AT
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 17 Nov 2014 17:08:10 +0000 (19:08 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 17 Nov 2014 17:08:10 +0000 (19:08 +0200)
src/misc/update_crypto.c

index 417b3ec..c935b03 100644 (file)
@@ -257,10 +257,8 @@ static size_t parse_signature_v4_packet( signature_packet_t *p_sig,
         {
             if( p + 4 > max_pos )
                 return 0;
-            i_subpacket_len = *++p << 24;
-            i_subpacket_len += *++p << 16;
-            i_subpacket_len += *++p << 8;
-            i_subpacket_len += *++p;
+            i_subpacket_len = U32_AT(p);
+            p += 4;
         }
 
         if( *p == ISSUER_SUBPACKET )