mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
fix buglets
This commit is contained in:
parent
74c57982c1
commit
27a5e02b8b
2 changed files with 5 additions and 2 deletions
|
|
@ -211,6 +211,7 @@ printmessage(dns_message_t *msg) {
|
|||
if (result != DNS_R_SUCCESS)
|
||||
return (result);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -229,6 +229,8 @@ main(int argc, char *argv[]) {
|
|||
if (argc < 2)
|
||||
usage();
|
||||
port = atoi(argv[1]);
|
||||
argv++;
|
||||
argc--;
|
||||
} else if (strcmp(argv[0], "+vc") == 0) {
|
||||
fatal("TCP transport not yet implemented");
|
||||
} else {
|
||||
|
|
@ -252,8 +254,8 @@ main(int argc, char *argv[]) {
|
|||
rdtype);
|
||||
have_type = ISC_TRUE;
|
||||
} else {
|
||||
if (dns_rdatatype_fromtext(&nclass,
|
||||
&tr) !=
|
||||
if (dns_rdataclass_fromtext(&nclass,
|
||||
&tr) !=
|
||||
ISC_R_SUCCESS)
|
||||
fatal("unknown class "
|
||||
"or type %s", argv[0]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue