diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-18 21:18:57 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-18 21:18:57 +0000 |
commit | e73a59da3776c43af33c0f58ebd47c8d2d996eda (patch) | |
tree | 3409218fa0731b702883c63f9157218ab6a6873a | |
parent | 7f4d406116c74cb6830b7da5419560204d47258d (diff) |
Argh, another bug introduced in r1.3; Dmitry Eremin-Solenikov
-rw-r--r-- | lib/libcrypto/gost/gostr341001_ameth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/gost/gostr341001_ameth.c b/lib/libcrypto/gost/gostr341001_ameth.c index bf55190d5d2..b5f49dbea72 100644 --- a/lib/libcrypto/gost/gostr341001_ameth.c +++ b/lib/libcrypto/gost/gostr341001_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gostr341001_ameth.c,v 1.4 2014/11/18 05:27:05 miod Exp $ */ +/* $OpenBSD: gostr341001_ameth.c,v 1.5 2014/11/18 21:18:56 miod Exp $ */ /* * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> * Copyright (c) 2005-2006 Cryptocom LTD @@ -605,7 +605,7 @@ param_copy_gost01(EVP_PKEY *to, const EVP_PKEY *from) GOST_R_KEY_PARAMETERS_MISSING); return 0; } - if (eto) { + if (eto == NULL) { eto = GOST_KEY_new(); if (eto == NULL) { GOSTerr(GOST_F_PARAM_COPY_GOST01, |