Hi Fabian,
Thank you for providing a patch with your report. I attached a modified
version to this follow-up. The changes are:
o Change error code of find_search_domain_name_len() from 0 to -1;
just because -1 looks more like an error code :)
o Fix expanded_len handling in expand_domain_search(). Each return
value of find_search_domain_name_len() is added to the previous
one.
o style(9) fixes.
o Update the regression testsuite.
Could you please tell me if this patch works for you?
And just for my curiosity, does your DHCP server runs on Windows?
Because someone else reported invalid DHCP Domain Search option value
like yours and his problem came from an incomplete support for this
feature in Windows' DHCP server.
To be clear (and so that search engines points here), Microsoft's
documentation[1] says that one should specify domains as
"example.com;foobar.net" for "option 119" (Domain Search option). The
problem is that their DHCP server sends this value as is. The following
article describes this issue and explains how to forge a raw value to
work around it:
http://www.mattzuba.com/2011/03/windows-2008-rc2-dhcp-server-option-119/
[1] http://technet.microsoft.com/en-us/library/dd572752%28office.13%29.aspx
--
Jean-Sébastien Pédron

Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr> wrote:
> Thank you for providing a patch with your report. I attached a modified
> version to this follow-up. The changes are:
> o Change error code of find_search_domain_name_len() from 0 to -1;
> just because -1 looks more like an error code :)
> o Fix expanded_len handling in expand_domain_search(). Each return
> value of find_search_domain_name_len() is added to the previous
> one.
> o style(9) fixes.
> o Update the regression testsuite.
>
> Could you please tell me if this patch works for you?
Looks good to me, thanks. I'll try to test it this weekend.
> And just for my curiosity, does your DHCP server runs on Windows?
I have no idea. The DHCP server is part of the public WLAN of
a bar (Hallmackenreuther, Brüsseler Platz 9, 50674 Cologne,
Germany) and outside my control.
Fabian