1
--- deadwood-3.2.02/src/DwRecurse.c 2012-02-29 01:59:53.000000000 -0600
2
+++ deadwood-3.2.03/src/DwRecurse.c 2012-07-21 13:07:03.000000000 -0500
6
/* First CNAME pointer... */
7
- value = dwx_make_one_cname_rr(query, 0, action, 2, ttl, &len, 768);
9
+ value = dwx_make_one_cname_rr(query, 0, action, 2, ttl, &len, 1024);
10
+ if(value == 0 || value->len > 1020) {
11
+ dw_log_string("dwx_make_one_cname_rr problem",100);
12
goto catch_dwx_create_cname_reply;
17
offsets[this_offset * 2] = value->len;
18
offsets[(this_offset * 2) + 1] = value->len + len;
19
- if(dw_append(temp, value) == -1) {
20
+ if(dw_append(temp, value) == -1 || value->len > 1020) {
21
+ dw_log_string("Append error making cname reply",100);
22
goto catch_dwx_create_cname_reply;
25
@@ -1901,6 +1903,11 @@
26
/* Final answer after CNAME pointers... */
27
dwx_add_final_answer(query, answer, value, offsets, this_offset);
29
+ if(value->len > 1020) {
30
+ dw_log_string("Final append error making cname reply",100);
31
+ goto catch_dwx_create_cname_reply;
34
/* Make that a full answer to give the calling function */
37
--- deadwood-3.2.03/sqa/do.tests.orig 2012-07-21 13:20:33.000000000 -0500
38
+++ deadwood-3.2.03/sqa/do.tests 2012-07-21 13:21:13.000000000 -0500
40
TESTS=$TESTS"dwood2rc_d_upstream_servers "
41
TESTS=$TESTS"dwood2rc_n_verbose_level "
42
TESTS=$TESTS"recurse_2link_cname "
43
+TESTS=$TESTS"recurse_es-us.noticias.yahoo.com "
44
TESTS=$TESTS"sqa_badid_question "
45
TESTS=$TESTS"sqa_bigpacket " # Needs BIND to run
46
TESTS=$TESTS"sqa_cname_chain "