On Wed, 2014-08-06 at 21:55 +0200, Mathias Hasselmann wrote:
> Hi,
>
> When parsing uncompressed DNS names the end pointer only must be updated
> when encountering a compressed label, or after parsing all uncompressed
> labels. Otherwise parse_rr() will interpret the second uncompressed
> label as resource record header instead of the bits behind the name
> terminating NUL byte.
>
> The attached patch addresses that issue.
Please send patches inline, it's much easier for everybody that way.
That said, there is unfortunately something wrong with the patch. With
current upstream code I can be pretty confident that 'host www
127.0.0.1' returns the proper name and address of the web server. After
testing with your patch it starts to fail with 'host' complaining about
malformed packets.
I think the patch is doing some use case properly as you would not have
sent it otherwise. Can you provide packet traces for loopback and the
uplink interface before and after your changes so that we can figure out
what kind of packets get delivered properly after the fix?
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman