2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

fix typo; make compname be relative to origin if not absolute

This commit is contained in:
Bob Halley
1999-01-09 01:00:52 +00:00
parent e5a56e1fd5
commit 011021d301

View File

@@ -85,7 +85,7 @@ main(int argc, char *argv[]) {
origin = dns_rootname; origin = dns_rootname;
if (argc > 1) { if (argc > 1) {
if (strcasecmp("none", argv[0]) == 0) if (strcasecmp("none", argv[1]) == 0)
comp = NULL; comp = NULL;
else { else {
len = strlen(argv[1]); len = strlen(argv[1]);
@@ -96,7 +96,7 @@ main(int argc, char *argv[]) {
ISC_BUFFERTYPE_BINARY); ISC_BUFFERTYPE_BINARY);
dns_name_init(&compname, compoffsets); dns_name_init(&compname, compoffsets);
result = dns_name_fromtext(&compname, &source, result = dns_name_fromtext(&compname, &source,
dns_rootname, 0, origin, 0,
&target); &target);
if (result != 0) { if (result != 0) {
fprintf(stderr, fprintf(stderr,