diff options
-rw-r--r-- | cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cipher.c,v 1.104 2017/04/30 23:15:04 djm Exp $ */ | 1 | /* $OpenBSD: cipher.c,v 1.105 2017/05/01 00:03:18 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -259,7 +259,7 @@ cipher_init(struct sshcipher_ctx **ccp, const struct sshcipher *cipher, | |||
259 | if ((cc = calloc(sizeof(*cc), 1)) == NULL) | 259 | if ((cc = calloc(sizeof(*cc), 1)) == NULL) |
260 | return SSH_ERR_ALLOC_FAIL; | 260 | return SSH_ERR_ALLOC_FAIL; |
261 | 261 | ||
262 | cc->plaintext = 0; /* XXX */ | 262 | cc->plaintext = (cipher->flags & CFLAG_NONE) != 0; |
263 | cc->encrypt = do_encrypt; | 263 | cc->encrypt = do_encrypt; |
264 | 264 | ||
265 | if (keylen < cipher->key_len || | 265 | if (keylen < cipher->key_len || |