mode used too early in EVP_PKEY_save_parameters.
authorRichard Levitte <levitte@openssl.org>
Mon, 6 Nov 2000 21:12:21 +0000 (21:12 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 6 Nov 2000 21:12:21 +0000 (21:12 +0000)
Spotted by Ken Lalonde <ken@torus.ca>

crypto/evp/p_lib.c

index 62398ed..14af319 100644 (file)
@@ -99,7 +99,7 @@ int EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode)
 #ifndef NO_DSA
        if (pkey->type == EVP_PKEY_DSA)
                {
-               int ret=pkey->save_parameters=mode;
+               int ret=pkey->save_parameters;
 
                if (mode >= 0)
                        pkey->save_parameters=mode;