From e92f0b0e772e6aef156ae96629a7d9346f2d9044 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 25 Sep 2010 09:07:05 +0200 Subject: Added some comments and removed unused code. --- lib/ext_session_ticket.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/ext_session_ticket.c b/lib/ext_session_ticket.c index c244d21787..b45053949a 100644 --- a/lib/ext_session_ticket.c +++ b/lib/ext_session_ticket.c @@ -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; } -- cgit v1.2.1