util/mkerr.pl: don't stop reading conserved symbols from the state file
authorRichard Levitte <levitte@openssl.org>
Sun, 1 Dec 2019 08:14:48 +0000 (09:14 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 3 Dec 2019 23:22:24 +0000 (00:22 +0100)
If we don't read them, they will not be conserved.

Fixes #10522

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/10549)

util/mkerr.pl

index 0b09fb3327ed01fec42bdc240455b0ba0a0fc016..d72b4079090cf6681e7f4991ae01e0f2db1f633e 100755 (executable)
@@ -210,12 +210,6 @@ if ( ! $reindex && $statefile ) {
             print "Skipping $_";
             $skippedstate++;
             next;
-        } elsif ( $hinc{$lib} eq 'NONE' ) {
-            # When the header is NONE but the err file is specified,
-            # it signifies that the err file should be conserved but
-            # remain untouched, and the same goes for the symbols in
-            # the state file.
-            next;
         }
         if ( $name =~ /^(?:OSSL_|OPENSSL_)?[A-Z0-9]{2,}_R_/ ) {
             die "$lib reason code $code collision at $name\n"