[PATCH] fetchzone.c: fix AAAA records

Corey Hickey bugfood-ml at fatooh.org
Wed Dec 29 01:52:44 EST 2010


On 2010-12-28 09:06, Sam Trenholme wrote:
>> This seems to just be a typo in a printf format string. Here's a patch
>> to fix it, assuming I'm not missing something.
> 
> Corey,
> 
> It looks like the patch either was not attached or was scrubbed by the
> listserv software.  Could you please try mailing it again, and CC me a
> copy of the patch (so I can mail it to the list if it is the listserv
> scrubbing it, and so I can put it on the MaraDNS webpage next week
> sometime).

Must have been scrubbed. I'm attaching 'aaaa.diff' again and pasting it
in below.

--- tcp/fetchzone.c.orig	2010-08-28 15:37:11.000000000 -0700
+++ tcp/fetchzone.c	2010-12-27 16:26:39.714551535 -0800
@@ -344,7 +344,7 @@
                     rr.name->string--;
                     rr.name->unit_count++;
                     p = (unsigned short *)get->string;
-                    printf(" +%u aaaa %x:%x:%x:%x%x:%x:%x:%x: ~ \n",rr.ttl,
+                    printf(" +%u aaaa %x:%x:%x:%x:%x:%x:%x:%x: ~ \n",rr.ttl,
                            htons(*(p)), htons(*(p + 1)),htons(*(p + 2)), htons(*(p + 3)),
                            htons(*(p + 4)), htons(*(p + 5)), htons(*(p + 6)), htons(*(p +7)));
                     }



Thanks,
Corey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aaaa.diff
URL: <http://woodlane.webconquest.com/pipermail/list/attachments/20101228/4ded120e/attachment.asc>


More information about the list mailing list