[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, gnutls_2_10_x, updated. gnutls_2_10_4-8-g100563
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU gnutls branch, gnutls_2_10_x, updated. gnutls_2_10_4-8-g100563a |
Date: |
Sun, 27 Feb 2011 13:29:26 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".
http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=100563a343b9e3af218173b32484515a091814ac
The branch, gnutls_2_10_x has been updated
via 100563a343b9e3af218173b32484515a091814ac (commit)
from 5f89e68da46fb55f1e27ea2996407d20223f97cc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 100563a343b9e3af218173b32484515a091814ac
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Sun Feb 27 14:26:58 2011 +0100
corrected finished packet check.
-----------------------------------------------------------------------
Summary of changes:
lib/gnutls_handshake.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index e2f49fe..56a3241 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -780,12 +780,14 @@ _gnutls_recv_finished (gnutls_session_t session)
return ret;
}
- if (memcmp (vrfy, data, data_size) != 0)
+ ret = memcmp (vrfy, data, data_size);
+ gnutls_free (vrfy);
+
+ if (ret != 0)
{
gnutls_assert ();
- ret = GNUTLS_E_ERROR_IN_FINISHED_PACKET;
+ return GNUTLS_E_ERROR_IN_FINISHED_PACKET;
}
- gnutls_free (vrfy);
/* Save peer's verify data for safe renegotiation */
if (data_size > MAX_VERIFY_DATA_SIZE)
@@ -809,7 +811,7 @@ _gnutls_recv_finished (gnutls_session_t session)
session->internals.initial_negotiation_completed = 1;
- return ret;
+ return 0;
}
/* returns PK_RSA if the given cipher suite list only supports,
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, gnutls_2_10_x, updated. gnutls_2_10_4-8-g100563a,
Nikos Mavrogiannopoulos <=