mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
libmicrohttpd: update to version 0.9.55
Change-Id: I2a034e9bdd4289f42fadefd0c24d578d52ed0cf0 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
-49
@@ -1,49 +0,0 @@
|
|||||||
From: jose.bollo@iot.bzh
|
|
||||||
Date: Thu, 4 May 2017 21:47:38 +0200
|
|
||||||
Subject: [PATCH] Check response existence on upgrade
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
When a connection upgrade is requested and when the
|
|
||||||
request sent an error reply, the response is most of
|
|
||||||
the time already sent when the test on
|
|
||||||
connection->response->upgrade_handler is made, leading
|
|
||||||
to dereferencing NULL.
|
|
||||||
|
|
||||||
Two possibilities exist:
|
|
||||||
|
|
||||||
NULL == connection->response || NULL == connection->response->upgrade_handler
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
NULL != connection->response && NULL == connection->response->upgrade_handler
|
|
||||||
|
|
||||||
The first is prefered because it is probably safer to close the connection
|
|
||||||
in that case.
|
|
||||||
|
|
||||||
Upstream-Status: Accepted [https://gnunet.org/git/libmicrohttpd.git/commit/?id=b4216c60fdb5b48f6cfec416301fc63a1167e6cd]
|
|
||||||
|
|
||||||
Change-Id: Ie6e7fc165f7fe3635ade0952bb34a0b937d38716
|
|
||||||
Signed-off-by: José Bollo <jobol@nonadev.net>
|
|
||||||
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
||||||
---
|
|
||||||
src/microhttpd/connection.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
|
|
||||||
index a495524..d39c110 100644
|
|
||||||
--- a/src/microhttpd/connection.c
|
|
||||||
+++ b/src/microhttpd/connection.c
|
|
||||||
@@ -882,7 +882,7 @@ keepalive_possible (struct MHD_Connection *connection)
|
|
||||||
#ifdef UPGRADE_SUPPORT
|
|
||||||
if ( (MHD_str_equal_caseless_ (end,
|
|
||||||
"upgrade")) &&
|
|
||||||
- (NULL == connection->response->upgrade_handler) )
|
|
||||||
+ (NULL == connection->response || NULL == connection->response->upgrade_handler) )
|
|
||||||
return MHD_NO;
|
|
||||||
#endif /* UPGRADE_SUPPORT */
|
|
||||||
|
|
||||||
--
|
|
||||||
2.9.3
|
|
||||||
|
|
||||||
+2
-5
@@ -6,11 +6,8 @@ SECTION = "net"
|
|||||||
DEPENDS = "libgcrypt gnutls file"
|
DEPENDS = "libgcrypt gnutls file"
|
||||||
|
|
||||||
SRC_URI = "http://ftp.gnu.org/gnu/libmicrohttpd/${BPN}-${PV}.tar.gz"
|
SRC_URI = "http://ftp.gnu.org/gnu/libmicrohttpd/${BPN}-${PV}.tar.gz"
|
||||||
SRC_URI[md5sum] = "5a425e993a0f5295aecb5d6607a1c242"
|
SRC_URI[md5sum] = "1c20f84a8b9cf692dd50b558b3571a3a"
|
||||||
SRC_URI[sha256sum] = "9b15ec2d381f44936323adfd4f989fa35add517cccbbfa581896b02a393c2cc4"
|
SRC_URI[sha256sum] = "0c1cab8dc9f2588bd3076a28f77a7f8de9560cbf2d80e53f9a8696ada80ed0f8"
|
||||||
|
|
||||||
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
|
|
||||||
SRC_URI += " file://Check-response-existence-on-upgrade.patch"
|
|
||||||
|
|
||||||
inherit autotools lib_package pkgconfig gettext
|
inherit autotools lib_package pkgconfig gettext
|
||||||
|
|
||||||
Reference in New Issue
Block a user