[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 01/02: MHD_tls_connection_shutdown(): remem
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 01/02: MHD_tls_connection_shutdown(): remember real result of TLS shutdown |
Date: |
Sat, 03 Jun 2017 21:43:49 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 3516d336f1471eca64be65fe2c5d6d64e8bb2fa1
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sat Jun 3 22:26:26 2017 +0300
MHD_tls_connection_shutdown(): remember real result of TLS shutdown
---
src/microhttpd/connection_https.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/microhttpd/connection_https.c
b/src/microhttpd/connection_https.c
index 28f019a5..7a1171ce 100644
--- a/src/microhttpd/connection_https.c
+++ b/src/microhttpd/connection_https.c
@@ -142,12 +142,12 @@ MHD_set_https_callbacks (struct MHD_Connection
*connection)
int
MHD_tls_connection_shutdown (struct MHD_Connection *connection)
{
- if (connection->tls_closed)
- return MHD_NO;
-
- connection->tls_closed = true;
- return (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session,
GNUTLS_SHUT_WR)) ?
- MHD_YES : MHD_NO;
+ if (! connection->tls_closed)
+ {
+ connection->tls_closed =
+ (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session,
GNUTLS_SHUT_WR));
+ }
+ return connection->tls_closed ? MHD_YES : MHD_NO;;
}
/* end of connection_https.c */
--
To stop receiving notification emails like this one, please contact
address@hidden