diff options
Diffstat (limited to 'src/microhttpd/connection_https.c')
-rw-r--r-- | src/microhttpd/connection_https.c | 12 |
1 files 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) | |||
142 | int | 142 | int |
143 | MHD_tls_connection_shutdown (struct MHD_Connection *connection) | 143 | MHD_tls_connection_shutdown (struct MHD_Connection *connection) |
144 | { | 144 | { |
145 | if (connection->tls_closed) | 145 | if (! connection->tls_closed) |
146 | return MHD_NO; | 146 | { |
147 | 147 | connection->tls_closed = | |
148 | connection->tls_closed = true; | 148 | (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session, GNUTLS_SHUT_WR)); |
149 | return (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session, GNUTLS_SHUT_WR)) ? | 149 | } |
150 | MHD_YES : MHD_NO; | 150 | return connection->tls_closed ? MHD_YES : MHD_NO;; |
151 | } | 151 | } |
152 | 152 | ||
153 | /* end of connection_https.c */ | 153 | /* end of connection_https.c */ |