summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dh.c b/src/dh.c
index c9e20f9..4f172c2 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -947,7 +947,7 @@ int generate_session_keys(ssh_session session) {
if (tmp == NULL) {
goto error;
}
- tmp = crypto->decryptkey;
+ crypto->decryptkey = tmp;
if(crypto->decryptkey == NULL)
goto error;