From c6eb54c39e4663c8f9ea82e8bf29bfdb3c8d945a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 16 Apr 2009 14:50:53 +0000 Subject: Improve dh_import() functions. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@505 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libssh/client.c') diff --git a/libssh/client.c b/libssh/client.c index 70956c98..166eb3a7 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -251,7 +251,11 @@ static int dh_handshake(SSH_SESSION *session) { rc = SSH_ERROR; goto error; } - dh_import_f(session, f); + if (dh_import_f(session, f) < 0) { + ssh_set_error(session, SSH_FATAL, "Cannot import f number"); + rc = SSH_ERROR; + goto error; + } string_burn(f); string_free(f); -- cgit