Make sure that the signal storage is regarded as volatile.
authorRichard Levitte <levitte@openssl.org>
Wed, 25 Sep 2002 14:14:11 +0000 (14:14 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 25 Sep 2002 14:14:11 +0000 (14:14 +0000)
This correction was originally introduced in OpenBSD's tracking of OpenSSL.

crypto/ui/ui_openssl.c

index 2c2fbc044395ba712976aec977b99fba97790e0e..f47ed31cb02476344f1bd000b6a4b12356fffc0a 100644 (file)
@@ -378,7 +378,7 @@ static void read_till_nl(FILE *in)
                } while (strchr(buf,'\n') == NULL);
        }
 
-static sig_atomic_t intr_signal;
+static volatile sig_atomic_t intr_signal;
 
 static int read_string_inner(UI *ui, UI_STRING *uis, int echo, int strip_nl)
        {