extract_asn1_from_spec.pl: fix parsing of END tag
authorPascal Quantin <pascal.quantin@gmail.com>
Wed, 4 Apr 2018 17:51:53 +0000 (19:51 +0200)
committerPascal Quantin <pascal.quantin@gmail.com>
Wed, 4 Apr 2018 17:52:47 +0000 (17:52 +0000)
Change-Id: I2eb73f74b456ffb5a9bae50e78f7edb4204912e0
Reviewed-on: https://code.wireshark.org/review/26740
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
tools/extract_asn1_from_spec.pl

index 5a166365df1a56a6df7d13014439270ee9f10b5b..8c69b55f6c90c19129466bb62fa2df1103f62855 100755 (executable)
@@ -73,7 +73,7 @@ sub extract_asn1 {
       $file_name_found = 1;
     }
 
-    if (($line =~ /END/) && (defined fileno OUTPUT_FILE)){
+    if (($line =~ /^END/) && (defined fileno OUTPUT_FILE)){
       syswrite OUTPUT_FILE,"$line";
       close(OUTPUT_FILE);
       $is_asn1 = 0;