]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Added some comments and removed unused code.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 25 Sep 2010 07:07:05 +0000 (09:07 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 25 Sep 2010 07:07:05 +0000 (09:07 +0200)
lib/ext_session_ticket.c

index c244d21787fceebe8547b8d75a6752add83bf889..b45053949a6d6d1e14c48a3ec88cfdccd9d7c8f5 100644 (file)
@@ -383,9 +383,11 @@ session_ticket_send_params (gnutls_session_t session,
       if (ret >= 0)
        priv = epriv.ptr;
        
+      /* no previous data. Just advertize it */
       if (ret < 0)
         return GNUTLS_E_INT_RET_0;
 
+      /* previous data had session tickets disabled. Don't advertize. Ignore. */
       if (!priv->session_ticket_enable)
        return 0;
 
@@ -396,10 +398,6 @@ session_ticket_send_params (gnutls_session_t session,
 
          return priv->session_ticket_len;
        }
-      else
-       {
-         return GNUTLS_E_INT_RET_0;
-       }
     }
   return 0;
 }