gnutls-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_11_7-34-g623fa


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_11_7-34-g623fa5c
Date: Sun, 20 Mar 2011 13:23:33 +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=623fa5cb3494f950c7e6f3158c183023c860ce1f

The branch, gnutls_2_12_x has been updated
       via  623fa5cb3494f950c7e6f3158c183023c860ce1f (commit)
      from  fea199c8bb0ecab59aaef04fc2eec30e17b4b97b (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 623fa5cb3494f950c7e6f3158c183023c860ce1f
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sun Mar 20 14:23:16 2011 +0100

    ensure addition to application data buffers is occuring only after a 
successful handshake.

-----------------------------------------------------------------------

Summary of changes:
 lib/gnutls_record.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c
index 8ed84f2..15f4fce 100644
--- a/lib/gnutls_record.c
+++ b/lib/gnutls_record.c
@@ -745,6 +745,12 @@ record_check_type (gnutls_session_t session,
           return GNUTLS_E_UNEXPECTED_PACKET;
 
         case GNUTLS_APPLICATION_DATA:
+          if (session->internals.initial_negotiation_completed == 0)
+            {
+              ret = gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET);
+              goto cleanup;
+            }
+
           /* even if data is unexpected put it into the buffer */
           if ((ret =
                _gnutls_record_buffer_put (recv_type, session,


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]