]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Corrected advertizing issue for session tickets.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 25 Sep 2010 06:56:45 +0000 (08:56 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 25 Sep 2010 06:56:45 +0000 (08:56 +0200)
NEWS
lib/ext_session_ticket.c

diff --git a/NEWS b/NEWS
index 2618d86e02fc81453d3dd17215521819c5712ead..e6fa574a12727ab733eb5646055d3b28c9b8da1e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,8 @@ See the end for copying conditions.
 ** libgnutls: Corrected bug that caused importing DSA keys as RSA,
 introduced with the new nettle code.
 
+** libgnutls: Corrected advertizing issue for session tickets.
+
 ** API and ABI modifications:
 No changes since last version.
 
index 4c025184f1d335f71793522fe8064db4d2670383..c244d21787fceebe8547b8d75a6752add83bf889 100644 (file)
@@ -382,8 +382,11 @@ session_ticket_send_params (gnutls_session_t session,
       ret = _gnutls_ext_get_resumed_session_data( session, GNUTLS_EXTENSION_SESSION_TICKET, &epriv);
       if (ret >= 0)
        priv = epriv.ptr;
+       
+      if (ret < 0)
+        return GNUTLS_E_INT_RET_0;
 
-      if (ret < 0 || !priv->session_ticket_enable)
+      if (!priv->session_ticket_enable)
        return 0;
 
       if (priv->session_ticket_len > 0)