mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
wrong argv index was being atoi()d after conversion to isc/commandline.h
This commit is contained in:
@@ -84,7 +84,7 @@ main (int argc, char **argv) {
|
|||||||
isc_result_totext(result));
|
isc_result_totext(result));
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
result = omapi_protocol_listen(listener, atoi(argv[2]), 1);
|
result = omapi_protocol_listen(listener, atoi(argv[1]), 1);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
fprintf (stderr, "omapi_listen: %s\n",
|
fprintf (stderr, "omapi_listen: %s\n",
|
||||||
isc_result_totext(result));
|
isc_result_totext(result));
|
||||||
|
Reference in New Issue
Block a user