Skip to content

Commit 69159df

Browse files
committed
fix CID 402977
another occurence than already fixed with 387291a
1 parent d22c2c6 commit 69159df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/crypto/openssl_encrypt.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,16 @@ get_cipher_from_str(char *str)
150150
static int
151151
openssl_encrypt_init(struct openssl_encrypt **state, const char *passphrase)
152152
{
153-
enum openssl_mode mode = DEFAULT_CIPHER_MODE;
154-
155-
struct openssl_encrypt *s = (struct openssl_encrypt *)
156-
calloc(1, sizeof(struct openssl_encrypt));
157-
158153
if (strcmp(passphrase, "help") == 0) {
159154
usage();
160155
return 1;
161156
}
162157

158+
enum openssl_mode mode = DEFAULT_CIPHER_MODE;
159+
160+
struct openssl_encrypt *s = (struct openssl_encrypt *)
161+
calloc(1, sizeof(struct openssl_encrypt));
162+
163163
char pass[STR_LEN];
164164
snprintf_ch(pass, "%s", passphrase);
165165

0 commit comments

Comments
 (0)