diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-06-16 20:46:32 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-06-16 20:46:32 +0200 |
commit | 0d771f770e6c444cfee7f4f588620e9c8b934d97 (patch) | |
tree | 78ebf99ae16e6d3282e42494a46c8d427872b404 /src | |
parent | 11ed3de399e16ca294fd4478596845b444438968 (diff) | |
download | libmicrohttpd-0d771f770e6c444cfee7f4f588620e9c8b934d97.tar.gz libmicrohttpd-0d771f770e6c444cfee7f4f588620e9c8b934d97.zip |
handle gnutls_record_uncork() failure, might help issue PC reported on the list
Diffstat (limited to 'src')
-rw-r--r-- | src/microhttpd/mhd_send.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 0864d532..1ff45231 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -313,7 +313,10 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
313 | 313 | ||
314 | if (! want_cork && have_cork) | 314 | if (! want_cork && have_cork) |
315 | { | 315 | { |
316 | (void) gnutls_record_uncork (connection->tls_session, 0); | 316 | int err = gnutls_record_uncork (connection->tls_session, 0); |
317 | |||
318 | if (0 > err) | ||
319 | return MHD_ERR_AGAIN_; | ||
317 | connection->sk_cork_on = false; | 320 | connection->sk_cork_on = false; |
318 | } | 321 | } |
319 | } | 322 | } |