diff options
author | LaMont Jones <lamont@debian.org> | 2009-03-20 08:26:10 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2009-03-20 08:26:10 -0600 |
commit | 457d065cf051a7ad041ace140c5ae6184fd5d208 (patch) | |
tree | e023610b78adf4253e9eecde3e96f1b1a022e577 /lib/dns/dst_api.c | |
parent | 95cab7ab13c7aedf768b3273a9a736f23239c18f (diff) | |
download | bind9-457d065cf051a7ad041ace140c5ae6184fd5d208.tar.gz |
9.6.0rc1
Diffstat (limited to 'lib/dns/dst_api.c')
-rw-r--r-- | lib/dns/dst_api.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index 4bfcfe8d..32f894d5 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -31,7 +31,7 @@ /* * Principal Author: Brian Wellington - * $Id: dst_api.c,v 1.15 2008/09/24 02:46:22 marka Exp $ + * $Id: dst_api.c,v 1.16 2008/11/14 22:53:46 marka Exp $ */ /*! \file */ @@ -997,6 +997,13 @@ dst_key_read_public(const char *filename, int type, NEXTTOKEN(lex, opt, &token); if (token.type != isc_tokentype_string) BADTOKEN(); + + /* + * We don't support "@" in .key files. + */ + if (!strcmp(DST_AS_STR(token), "@")) + BADTOKEN(); + dns_fixedname_init(&name); isc_buffer_init(&b, DST_AS_STR(token), strlen(DST_AS_STR(token))); isc_buffer_add(&b, strlen(DST_AS_STR(token))); |