[libsoup] http2: Fix possible null-deref
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] http2: Fix possible null-deref
- Date: Thu, 20 May 2021 01:09:02 +0000 (UTC)
commit 9c3c1397bf15d0aba65db386fa94c02e9b78e721
Author: Patrick Griffis <pgriffis igalia com>
Date: Wed May 19 20:08:35 2021 -0500
http2: Fix possible null-deref
libsoup/http2/soup-client-message-io-http2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 74b4c31b..0b09ee14 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -963,7 +963,7 @@ soup_client_message_io_http2_in_progress (SoupClientMessageIO *iface,
{
SoupClientMessageIOHTTP2 *io = (SoupClientMessageIOHTTP2 *)iface;
- return get_data_for_message (io, msg) != NULL;
+ return io && get_data_for_message (io, msg) != NULL;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]