gnutls-commit
[Top][All Lists]
Advanced

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

[SCM] GNU gnutls branch, master, updated. gnutls_3_0_18-93-g734be60


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, master, updated. gnutls_3_0_18-93-g734be60
Date: Tue, 29 May 2012 20:37:50 +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=734be60f2d3118ea8d25d0d8579e75081d364292

The branch, master has been updated
       via  734be60f2d3118ea8d25d0d8579e75081d364292 (commit)
      from  a0d3a14211d66084c174f9354623d3de13d43934 (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 734be60f2d3118ea8d25d0d8579e75081d364292
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Tue May 29 22:37:41 2012 +0200

    improved comments and added unlikely().

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

Summary of changes:
 lib/gnutls_buffers.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c
index 3ff364b..17ec061 100644
--- a/lib/gnutls_buffers.c
+++ b/lib/gnutls_buffers.c
@@ -763,7 +763,7 @@ parse_handshake_header (gnutls_session_t session, 
mbuffer_st* bufel,
   dataptr = _mbuffer_get_udata_ptr(bufel);
 
   /* if reading a client hello of SSLv2 */
-  if (!IS_DTLS(session) && bufel->htype == GNUTLS_HANDSHAKE_CLIENT_HELLO_V2)
+  if (unlikely(!IS_DTLS(session) && bufel->htype == 
GNUTLS_HANDSHAKE_CLIENT_HELLO_V2))
     {
       handshake_header_size = SSL2_HEADERS; /* we've already read one byte */
 
@@ -778,7 +778,7 @@ parse_handshake_header (gnutls_session_t session, 
mbuffer_st* bufel,
       hsk->start_offset = 0;
       hsk->end_offset = hsk->length;
     }
-  else /* TLS handshake headers */
+  else /* TLS or DTLS handshake headers */
     {
 
       hsk->htype = dataptr[0];


hooks/post-receive
-- 
GNU gnutls



reply via email to

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