mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 22:47:51 +00:00
connman: add patch to fig segfault in vpnd
This commit is contained in:
parent
136dea38b7
commit
b4164000cb
@ -0,0 +1,20 @@
|
||||
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
|
||||
index 0336636..40450eb 100644
|
||||
--- a/vpn/vpn-provider.c
|
||||
+++ b/vpn/vpn-provider.c
|
||||
@@ -1869,9 +1869,14 @@ static const char *get_string(GHashTable *settings, const char *key)
|
||||
static GSList *parse_user_networks(const char *network_str)
|
||||
{
|
||||
GSList *networks = NULL;
|
||||
- char **elems = g_strsplit(network_str, ",", 0);
|
||||
+ char **elems;
|
||||
int i = 0;
|
||||
|
||||
+ if (network_str == NULL)
|
||||
+ return NULL;
|
||||
+
|
||||
+ elems = g_strsplit(network_str, ",", 0);
|
||||
+
|
||||
if (elems == NULL)
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user