Declare the static BIGNUM "BN_value_one()" more carefully.
authorGeoff Thorpe <geoff@openssl.org>
Mon, 1 Dec 2003 23:13:17 +0000 (23:13 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Mon, 1 Dec 2003 23:13:17 +0000 (23:13 +0000)
crypto/bn/bn_lib.c

index b499292..3ecf83d 100644 (file)
@@ -131,7 +131,7 @@ int BN_get_params(int which)
 const BIGNUM *BN_value_one(void)
        {
        static BN_ULONG data_one=1L;
-       static BIGNUM const_one={&data_one,1,1,0};
+       static BIGNUM const_one={&data_one,1,1,0,BN_FLG_STATIC_DATA};
 
        return(&const_one);
        }