Browse Source

variable 'len' must be initialized in all case

Francois Perrad 7 years ago
parent
commit
995e575521
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/pk/asn1/der/sequence/der_decode_sequence_flexi.c

+ 1 - 0
src/pk/asn1/der/sequence/der_decode_sequence_flexi.c

@@ -122,6 +122,7 @@ int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc
           * switch-case should go to default anyway...
           * switch-case should go to default anyway...
           */
           */
          data_offset = 0;
          data_offset = 0;
+         len = 0;
       }
       }
 
 
      /* now switch on type */
      /* now switch on type */