[SCM] GNU gnutls branch, master, updated. gnutls_3_0_18-182-g4d36d74

"Nikos Mavrogiannopoulos" <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.cvs
Message-ID <[email protected]>
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=4d36d74d99bfc0f12fcd34d093d3c035743e0038

The branch, master has been updated
       via  4d36d74d99bfc0f12fcd34d093d3c035743e0038 (commit)
      from  817238eb03b3a38acbb349d4401b9fc4a48db914 (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 4d36d74d99bfc0f12fcd34d093d3c035743e0038
Author: David Woodhouse <[email protected]>
Date:   Sat Jun 30 00:07:49 2012 +0100

    Return GNUTLS_E_LARGE_PACKET instead of truncating when sending DTLS record
    
    Signed-off-by: Nikos Mavrogiannopoulos <[email protected]>

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

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

diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c
index e6250f8..fbb84a1 100644
--- a/lib/gnutls_record.c
+++ b/lib/gnutls_record.c
@@ -384,7 +384,14 @@ _gnutls_send_int (gnutls_session_t session, content_type_t type,
      _gnutls_packet2str (type), type, (int) data_size);
 
   if (data_size > MAX_RECORD_SEND_SIZE(session))
-    send_data_size = MAX_RECORD_SEND_SIZE(session);
+    {
+      if (IS_DTLS(session))
+        {
+          gnutls_assert ();
+          return GNUTLS_E_LARGE_PACKET;
+        }
+      send_data_size = MAX_RECORD_SEND_SIZE(session);
+    }
   else
     send_data_size = data_size;
 


hooks/post-receive
-- 
GNU gnutls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.