Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."

Today's Topics:

   1. [PATCH] vpn: Split nameservers strings correctly (Daniel Wagner)
   2. Re: [PATCH] vpn: Split nameservers strings correctly
      (Daniel Wagner)


----------------------------------------------------------------------

Date: Thu, 13 Feb 2020 10:16:47 +0100
From: Daniel Wagner <[email protected]>
Subject: [PATCH] vpn: Split nameservers strings correctly
To: [email protected]
Cc: Daniel Wagner <[email protected]>
Message-ID: <[email protected]>

g_strsplit_set() splits the string into a number of tokens not
containing any of the characters in delimiter.

Fixes: 07d35c17e307 ("vpn-provider: Split nameserver string also by comma")
---
 vpn/vpn-provider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index d104ed87260a..5ce932872bbb 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -2852,7 +2852,7 @@ int vpn_provider_set_nameservers(struct vpn_provider 
*provider,
        if (!nameservers)
                return 0;
 
-       provider->nameservers = g_strsplit(nameservers, ", ", 0);
+       provider->nameservers = g_strsplit_set(nameservers, ", ", 0);
 
        return 0;
 }
-- 
2.25.0

------------------------------

Date: Thu, 13 Feb 2020 10:19:10 +0100
From: Daniel Wagner <[email protected]>
Subject: Re: [PATCH] vpn: Split nameservers strings correctly
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

On Thu, Feb 13, 2020 at 10:16:47AM +0100, Daniel Wagner wrote:
> g_strsplit_set() splits the string into a number of tokens not
> containing any of the characters in delimiter.
> 
> Fixes: 07d35c17e307 ("vpn-provider: Split nameserver string also by comma")

Patch applied.

------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]


------------------------------

End of connman Digest, Vol 52, Issue 15
***************************************

Reply via email to