[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34390 - libmicrohttpd/src/microhttpd
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34390 - libmicrohttpd/src/microhttpd |
Date: |
Wed, 29 Oct 2014 16:46:17 +0100 |
Author: grothoff
Date: 2014-10-29 16:46:17 +0100 (Wed, 29 Oct 2014)
New Revision: 34390
Modified:
libmicrohttpd/src/microhttpd/daemon.c
Log:
make sure we always set non-zero errno in send_tls_adapter
Modified: libmicrohttpd/src/microhttpd/daemon.c
===================================================================
--- libmicrohttpd/src/microhttpd/daemon.c 2014-10-29 15:32:10 UTC (rev
34389)
+++ libmicrohttpd/src/microhttpd/daemon.c 2014-10-29 15:46:17 UTC (rev
34390)
@@ -482,6 +482,15 @@
#endif
return -1;
}
+ if (res < 0)
+ {
+ /* some other GNUTLS error, should set 'errno'; as we do not
+ really understand the error (not listed in GnuTLS
+ documentation explicitly), we set 'errno' to something that
+ will cause the connection to fail. */
+ MHD_set_socket_errno_ (ECONNRESET);
+ return -1;
+ }
return res;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34390 - libmicrohttpd/src/microhttpd,
gnunet <=