Skip to content
Snippets Groups Projects
Commit d5881f9b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix parsing of the return code.

This fixes an issue in TypeClass lookups (such as used by reverse())
parent d653a6d9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -402,7 +402,7 @@ DNS.prototype.handle_response = function(sock) {
ret.recusrion_desired = !!(ascii(resp[2]) & (1));
ret.recusrion_available = !!(ascii(resp[2]) & (1<<7));
ret.reserved = (ascii(resp[3]) & 0x70) >> 4;
ret.rcode = ascii(resp[3] & 0x0f);
ret.rcode = ascii(resp[3]) & 0x0f;
queries = string_to_int16(resp.substr(4, 2));
answers = string_to_int16(resp.substr(6, 2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment