[Ttssh2-commit] [9250] OpenSSH からの移植時に間違えた条件判定を修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 5月 16日 (日) 23:26:47 JST


Revision: 9250
          https://osdn.net/projects/ttssh2/scm/svn/commits/9250
Author:   nmaya
Date:     2021-05-16 23:26:47 +0900 (Sun, 16 May 2021)
Log Message:
-----------
OpenSSH からの移植時に間違えた条件判定を修正

r9217
cf. ttssh2-devel 4896

Revision Links:
--------------
    https://osdn.net/projects/ttssh2/scm/svn/commits/9217

Modified Paths:
--------------
    branches/ssh_chacha20poly1305/ttssh2/ttxssh/cipher.c

-------------- next part --------------
Modified: branches/ssh_chacha20poly1305/ttssh2/ttxssh/cipher.c
===================================================================
--- branches/ssh_chacha20poly1305/ttssh2/ttxssh/cipher.c	2021-05-16 14:24:03 UTC (rev 9249)
+++ branches/ssh_chacha20poly1305/ttssh2/ttxssh/cipher.c	2021-05-16 14:26:47 UTC (rev 9250)
@@ -120,7 +120,7 @@
 u_int get_cipher_iv_len(const struct ssh2cipher *cipher)
 {
 	if (cipher) {
-		if (cipher->iv_len != 0 || cipher->id != SSH2_CIPHER_CHACHAPOLY) {
+		if (cipher->iv_len != 0 || cipher->id == SSH2_CIPHER_CHACHAPOLY) {
 			return cipher->iv_len;
 		}
 		else {


Ttssh2-commit メーリングリストの案内
Back to archive index