[Ttssh2-commit] [4303] KEX_DH_GEX のときに pvar- > kexdh の初期化が漏れているようなので修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 2月 14日 (月) 12:25:47 JST


Revision: 4303
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4303
Author:   maya
Date:     2011-02-14 12:25:46 +0900 (Mon, 14 Feb 2011)

Log Message:
-----------
KEX_DH_GEX のときに pvar->kexdh の初期化が漏れているようなので修正

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ssh.c


-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ssh.c	2011-02-14 03:19:21 UTC (rev 4302)
+++ trunk/ttssh2/ttxssh/ssh.c	2011-02-14 03:25:46 UTC (rev 4303)
@@ -4972,6 +4972,9 @@
 	notify_verbose_message(pvar, "SSH2_MSG_KEX_DH_GEX_INIT was sent at handle_SSH2_dh_gex_group().", LOG_LEVEL_VERBOSE);
 
 	// ‚±‚±‚ō쐬‚µ‚½DHŒ®‚́A‚ ‚ƂŃnƒbƒVƒ…ŒvŽZ‚ÉŽg‚¤‚½‚ߎæ‚Á‚Ä‚¨‚­B(2004.10.31 yutaka)
+	if (pvar->kexdh != NULL) {
+		DH_free(pvar->kexdh);
+	}
 	pvar->kexdh = dh;
 
 	{



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