diff --git a/src/resolver.c b/src/resolver.c
index 29871e1..9a13623 100644
--- a/src_patched/src/resolver.c
+++ b/src_patched/src/resolver.c
@@ -316,7 +316,7 @@ int connman_resolver_append(const char *interface,
const char *domain,

        DBG("interface %s domain %s server %s", interface, domain, server);

-       if (server == NULL)
+       if ((server == NULL) && (domain == NULL))
                return -EINVAL;

        for (list = entry_list; list; list = list->next) {


On Tue, Mar 20, 2012 at 3:02 PM, Leonardo Luiz Padovani da Mata
<[email protected]> wrote:
> Sorry, wrong patch, i will resend the file again.
>
> On Tue, Mar 20, 2012 at 3:01 PM, Leonardo Luiz Padovani da Mata
> <[email protected]> wrote:
>> Hello, I'm sending this patch through the list beacuse i didn't find a
>> bug related to this, please let me know if i need to create a bug, or
>> can someon just apply this patch on the git for me.
>>
>> This patch fix a bug on  connman_resolver_append which deny that
>> domains can be registered
>>
>> On registering domains, connman calls a function sending the domain as
>> a paramater, without this patch the funcion returns early beacause
>> there is a condition that tests if the server parameter is NULL.
>>
>> This patch add a condition to test if the parameter of domain is not
>> NULL, allowing connman to register more domains on its DNS settings.
>>
>>
>> The authors are
>> Augusto Cesar Santos Makiyama <[email protected]>
>> Leonardo Luiz Padovani da Mata <[email protected]>
>>
>> Thanks
>>
>> --
>> Leonardo Luiz Padovani da Mata
>>
>> International Syst S/A
>> Metasys Tecnologia
>> Software Engineer Metasys MeeGo Team
>>
>> [email protected]
>> +55-31-3503-9040
>>
>> "May the force be with you, always"
>> "Nerd Pride... eu tenho. Voce tem?"
>
>
>
> --
> Leonardo Luiz Padovani da Mata
>
> International Syst S/A
> Metasys Tecnologia
> Software Engineer Metasys MeeGo Team
>
> [email protected]
> +55-31-3503-9040
>
> "May the force be with you, always"
> "Nerd Pride... eu tenho. Voce tem?"



-- 
Leonardo Luiz Padovani da Mata

International Syst S/A
Metasys Tecnologia
Software Engineer Metasys MeeGo Team

[email protected]
+55-31-3503-9040

"May the force be with you, always"
"Nerd Pride... eu tenho. Voce tem?"
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to