Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when there is an Authority section #54

Open
bortzmeyer opened this issue Aug 26, 2022 · 0 comments
Open

Crashes when there is an Authority section #54

bortzmeyer opened this issue Aug 26, 2022 · 0 comments

Comments

@bortzmeyer
Copy link

If we try to encode a response which has an Authority (nslist) section, the library crashes

** (FunctionClauseError) no function clause matching in :inet_dns.encode_res_section/3
    (kernel) inet_dns.erl:275: :inet_dns.encode_res_section(<<155, 118, 133, 0, 0, 1, 0, 0, 0, 1, 0, 1, 5, 100, 114, 105, 110, 107, 4, 116, 101, 115, 116, 0, 0, 29, 0, 1>>, {2, {["drink", "test"], 12, nil, {["test"], 18, nil, nil}}}, [%DNS.Resource{bm: [], class: :in, cnt: 0, data: {'ns1.test', 'root.drink.test', 2022082613, 1800, 300, 604800, 86400}, domain: 'drink.test', func: false, tm: :undefined, ttl: 0, type: :soa}])
    (kernel) inet_dns.erl:242: :inet_dns.encode/1
    (drink) lib/drink/server.ex:315: Drink.Server.make_response/4
    (drink) lib/drink/server.ex:157: Drink.Server.serve/6

Answer or Additional section do not have the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant