Commit 27a5e02b authored by Bob Halley's avatar Bob Halley
Browse files

fix buglets

parent 74c57982
......@@ -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]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment