commit | 655a3789c44002c9184e90ff2489bbf0a0fa0eb9 | [log] [tgz] |
---|---|---|
author | Tarun Kundu <tarun.kundu@est.tech> | Thu Oct 10 14:45:50 2024 -0700 |
committer | Tarun Kundu <tarun.kundu@est.tech> | Thu Oct 10 14:45:50 2024 -0700 |
tree | ba4d674f01751e772c3fd84c7c3885df7e7e941d | |
parent | 20b270217f3bafe7e4904282af974899d945c539 [diff] |
Added handling for Extended DNS Error (EDE) Change-Id: I93f0cd6e463363514c7848ed6f391210b7055b17
diff --git a/src/edns0.c b/src/edns0.c index ce10a8d..4170064 100644 --- a/src/edns0.c +++ b/src/edns0.c
@@ -625,6 +625,11 @@ memmove(ansp, ansp + oplen, plen - oplen); header->arcount = htons(arcount-1); } + else if (opcode == EDNS0_OPTION_EDE) // Handle EDE (option 15) + { + // Move the pointer past the EDE option data + ansp += opdlen - 1; + } else { ansp += oplen;