mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-17 21:25:50 +02:00
- For #1189, homogenize the input buffer size for dname_str().
This commit is contained in:
@@ -1264,7 +1264,7 @@ struct serviced_query* outnet_serviced_query(struct outside_network* outnet,
|
||||
struct replay_runtime* runtime = (struct replay_runtime*)outnet->base;
|
||||
struct fake_pending* pend = (struct fake_pending*)calloc(1,
|
||||
sizeof(struct fake_pending));
|
||||
char z[256];
|
||||
char z[LDNS_MAX_DOMAINLEN];
|
||||
log_assert(pend);
|
||||
log_nametypeclass(VERB_OPS, "pending serviced query",
|
||||
qinfo->qname, qinfo->qtype, qinfo->qclass);
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ static int negverbose = 0;
|
||||
/** debug printout of neg cache */
|
||||
static void print_neg_cache(struct val_neg_cache* neg)
|
||||
{
|
||||
char buf[1024];
|
||||
char buf[LDNS_MAX_DOMAINLEN];
|
||||
struct val_neg_zone* z;
|
||||
struct val_neg_data* d;
|
||||
printf("neg_cache print\n");
|
||||
|
||||
@@ -111,7 +111,7 @@ static void zonemd_generate_test(const char* zname, char* zfile,
|
||||
digestdup[i] = toupper((unsigned char)digestdup[i]);
|
||||
}
|
||||
if(verbosity >= VERB_ALGO) {
|
||||
char zname[255+1];
|
||||
char zname[LDNS_MAX_DOMAINLEN];
|
||||
dname_str(z->name, zname);
|
||||
printf("zonemd generated for %s in %s with "
|
||||
"scheme=%d hashalgo=%d\n", zname, z->zonefile,
|
||||
|
||||
Reference in New Issue
Block a user