Increased size of 'cname' member of struct resourcerecord to 1024 from 64.

This was causing DKIM entries (http://tools.ietf.org/html/rfc5585#page-12) to be truncated, since they are frequently longer than 64 chars.
DKIM signatures are the same as those in RFC 5322 (internet message format), which in the text says they may be as large as 998 chars (http://tools.ietf.org/html/rfc5322#section-2.1.1).
1024 seems like a reasonable, round number.
This commit is contained in:
Stephen Ayotte
2012-12-30 20:52:06 -05:00
parent 08696dc541
commit 2bafa67f3e

View File

@@ -106,7 +106,7 @@ struct resourcerecord
char type[16];
char ipaddr[256][80];
char cipaddr[80];
char cname[64];
char cname[1024]; ## large enough to store DKIM entries, which by rfc5322 have an upper-limit of 998chars
char ttl[12];
char timestamp[20];
char preference[12];