aboutsummaryrefslogtreecommitdiff
path: root/contrib/bind9/lib/irs/dnsconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind9/lib/irs/dnsconf.c')
-rw-r--r--contrib/bind9/lib/irs/dnsconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/bind9/lib/irs/dnsconf.c b/contrib/bind9/lib/irs/dnsconf.c
index 4a7d58bfbc50..529cebd6ba10 100644
--- a/contrib/bind9/lib/irs/dnsconf.c
+++ b/contrib/bind9/lib/irs/dnsconf.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2009, 2012 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -144,8 +144,8 @@ configure_dnsseckeys(irs_dnsconf_t *conf, cfg_obj_t *cfgobj,
/* Configure key name */
dns_fixedname_init(&fkeyname);
keyname_base = dns_fixedname_name(&fkeyname);
- isc_buffer_init(&namebuf, keynamestr,
- strlen(keynamestr));
+ isc_buffer_constinit(&namebuf, keynamestr,
+ strlen(keynamestr));
isc_buffer_add(&namebuf, strlen(keynamestr));
result = dns_name_fromtext(keyname_base, &namebuf,
dns_rootname, 0, NULL);