Avoid clobbering a user-specified -g value after r340547.
CID: 1396919 MFC with: r340547
This commit is contained in:
parent
8267e4912a
commit
f117e35f57
@ -475,12 +475,15 @@ main(int argc, char *argv[])
|
||||
if (inet_aton(client, &ndconf.ndc_client) == 0)
|
||||
errx(EX_USAGE, "invalid client address '%s'", client);
|
||||
|
||||
gateway = find_gateway(argv[0]);
|
||||
if (gateway == NULL) {
|
||||
if (verbose)
|
||||
printf("failed to look up gateway for %s\n",
|
||||
server);
|
||||
gateway = server;
|
||||
gateway = find_gateway(argv[0]);
|
||||
if (gateway == NULL) {
|
||||
if (verbose)
|
||||
printf(
|
||||
"failed to look up gateway for %s\n",
|
||||
server);
|
||||
gateway = server;
|
||||
}
|
||||
}
|
||||
if (inet_aton(gateway, &ndconf.ndc_gateway) == 0)
|
||||
errx(EX_USAGE, "invalid gateway address '%s'", gateway);
|
||||
|
Loading…
Reference in New Issue
Block a user