summaryrefslogtreecommitdiff
path: root/kexdhc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexdhc.c')
-rw-r--r--kexdhc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kexdhc.c b/kexdhc.c
index 61d54fdc2..d384c8052 100644
--- a/kexdhc.c
+++ b/kexdhc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexdhc.c,v 1.10 2006/10/31 16:33:12 markus Exp $ */ 1/* $OpenBSD: kexdhc.c,v 1.11 2006/11/06 21:25:28 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -120,7 +120,8 @@ kexdh_client(Kex *kex)
120#endif 120#endif
121 if ((shared_secret = BN_new()) == NULL) 121 if ((shared_secret = BN_new()) == NULL)
122 fatal("kexdh_client: BN_new failed"); 122 fatal("kexdh_client: BN_new failed");
123 BN_bin2bn(kbuf, kout, shared_secret); 123 if (BN_bin2bn(kbuf, kout, shared_secret) == NULL)
124 fatal("kexdh_client: BN_bin2bn failed");
124 memset(kbuf, 0, klen); 125 memset(kbuf, 0, klen);
125 xfree(kbuf); 126 xfree(kbuf);
126 127