mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
connman: update to connman-9fa8782
This commit is contained in:
parent
9062997d92
commit
ff974e1e7d
@ -19,7 +19,7 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="connman"
|
||||
PKG_VERSION="fd7600c"
|
||||
PKG_VERSION="9fa8782"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
|
@ -1,35 +0,0 @@
|
||||
From 9944240ba52d19f04fb4bf468a8524f570e5fa6d Mon Sep 17 00:00:00 2001
|
||||
From: Jukka Rissanen <jukka.rissanen@linux.intel.com>
|
||||
Date: Fri, 22 Mar 2013 14:15:19 +0000
|
||||
Subject: dnsproxy: Make sure we are not accessing null hash
|
||||
|
||||
If dnsproxy is not in use, like when connman has been started
|
||||
with -r option, then the listener_table will be NULL which can
|
||||
cause crash in hash table lookup call.
|
||||
---
|
||||
diff --git a/src/dnsproxy.c b/src/dnsproxy.c
|
||||
index f698cfd..7a9ca91 100644
|
||||
--- a/src/dnsproxy.c
|
||||
+++ b/src/dnsproxy.c
|
||||
@@ -2916,6 +2916,9 @@ int __connman_dnsproxy_add_listener(int index)
|
||||
if (index < 0)
|
||||
return -EINVAL;
|
||||
|
||||
+ if (listener_table == NULL)
|
||||
+ return 0;
|
||||
+
|
||||
if (g_hash_table_lookup(listener_table, GINT_TO_POINTER(index)) != NULL)
|
||||
return 0;
|
||||
|
||||
@@ -2947,6 +2950,9 @@ void __connman_dnsproxy_remove_listener(int index)
|
||||
|
||||
DBG("index %d", index);
|
||||
|
||||
+ if (listener_table == NULL)
|
||||
+ return;
|
||||
+
|
||||
ifdata = g_hash_table_lookup(listener_table, GINT_TO_POINTER(index));
|
||||
if (ifdata == NULL)
|
||||
return;
|
||||
--
|
||||
cgit v0.9.1
|
Loading…
x
Reference in New Issue
Block a user